summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleks <aleks.stier@icloud.com>2022-05-31 00:33:38 +0200
committersalmonik <raisersoft@proton.me>2026-02-06 03:23:18 +0100
commit3dacee5d1ecb51071207232e37b3ee07bf888ef4 (patch)
treee6a19a166cc653c4333e7c19e095ec5bfc2ecec1
parentcopy text on selection (diff)
downloadst-3dacee5d1ecb51071207232e37b3ee07bf888ef4.tar.gz
st-3dacee5d1ecb51071207232e37b3ee07bf888ef4.zip
Create a desktop-entry for st
Enables to find st in a graphical menu and to display it with a nice icon. If some applications still are not displaying an icon for st try the patch [netwmicon](../netwmicon/). Programs like tint2 and alttab rely on a hardcoded icon which has to be stored by st in the \_NET\_WM\_ICON window-property.
-rw-r--r--Makefile3
-rw-r--r--config.mk1
-rw-r--r--st.desktop12
3 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 15db421..4158da2 100644
--- a/Makefile
+++ b/Makefile
@@ -43,9 +43,12 @@ install: st
43 chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1 43 chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
44 tic -sx st.info 44 tic -sx st.info
45 @echo Please see the README file regarding the terminfo entry of st. 45 @echo Please see the README file regarding the terminfo entry of st.
46 mkdir -p $(DESTDIR)$(APPPREFIX)
47 cp -f st.desktop $(DESTDIR)$(APPPREFIX)
46 48
47uninstall: 49uninstall:
48 rm -f $(DESTDIR)$(PREFIX)/bin/st 50 rm -f $(DESTDIR)$(PREFIX)/bin/st
51 rm -f $(DESTDIR)$(APPPREFIX)/st.desktop
49 rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 52 rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
50 53
51.PHONY: all clean dist install uninstall 54.PHONY: all clean dist install uninstall
diff --git a/config.mk b/config.mk
index 2fc854e..fe1a5d5 100644
--- a/config.mk
+++ b/config.mk
@@ -5,6 +5,7 @@ VERSION = 0.9.3
5 5
6# paths 6# paths
7PREFIX = /usr/local 7PREFIX = /usr/local
8APPPREFIX = $(PREFIX)/share/applications
8MANPREFIX = $(PREFIX)/share/man 9MANPREFIX = $(PREFIX)/share/man
9 10
10X11INC = /usr/X11R6/include 11X11INC = /usr/X11R6/include
diff --git a/st.desktop b/st.desktop
new file mode 100644
index 0000000..2d2b76f
--- /dev/null
+++ b/st.desktop
@@ -0,0 +1,12 @@
1[Desktop Entry]
2Type=Application
3Exec=st
4TryExec=st
5Icon=utilities-terminal
6Terminal=false
7Categories=System;TerminalEmulator;
8
9Name=st
10GenericName=Terminal
11Comment=st is a simple terminal implementation for X
12StartupWMClass=st-256color