diff options
| author | aleks <aleks.stier@icloud.com> | 2022-05-31 00:33:38 +0200 |
|---|---|---|
| committer | salmonik <raisersoft@proton.me> | 2026-02-06 03:23:18 +0100 |
| commit | 3dacee5d1ecb51071207232e37b3ee07bf888ef4 (patch) | |
| tree | e6a19a166cc653c4333e7c19e095ec5bfc2ecec1 | |
| parent | copy text on selection (diff) | |
| download | st-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-- | Makefile | 3 | ||||
| -rw-r--r-- | config.mk | 1 | ||||
| -rw-r--r-- | st.desktop | 12 |
3 files changed, 16 insertions, 0 deletions
| @@ -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 | ||
| 47 | uninstall: | 49 | uninstall: |
| 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 |
| @@ -5,6 +5,7 @@ VERSION = 0.9.3 | |||
| 5 | 5 | ||
| 6 | # paths | 6 | # paths |
| 7 | PREFIX = /usr/local | 7 | PREFIX = /usr/local |
| 8 | APPPREFIX = $(PREFIX)/share/applications | ||
| 8 | MANPREFIX = $(PREFIX)/share/man | 9 | MANPREFIX = $(PREFIX)/share/man |
| 9 | 10 | ||
| 10 | X11INC = /usr/X11R6/include | 11 | X11INC = /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] | ||
| 2 | Type=Application | ||
| 3 | Exec=st | ||
| 4 | TryExec=st | ||
| 5 | Icon=utilities-terminal | ||
| 6 | Terminal=false | ||
| 7 | Categories=System;TerminalEmulator; | ||
| 8 | |||
| 9 | Name=st | ||
| 10 | GenericName=Terminal | ||
| 11 | Comment=st is a simple terminal implementation for X | ||
| 12 | StartupWMClass=st-256color | ||
