Add desktop entry - st - Personal fork of st (HTM) git clone git://git.drkhsh.at/st.git (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 4a5baf0f24348a814c386a1c32724b9dac4d9de6 (DIR) parent 9091fdb12a28b8d32c3e19345e4653532ce5c7b4 (HTM) Author: drkhsh <me@drkhsh.at> Date: Tue, 31 May 2022 00:33:38 +0200 Add desktop entry Creates a desktop-entry for st Enables to find st in a graphical menu and to display it with a nice icon. Heavily used in Qubes OS, even in dmenu-ports. https://st.suckless.org/patches/desktopentry/ Diffstat: M Makefile | 3 +++ M config.mk | 1 + A st.desktop | 12 ++++++++++++ 3 files changed, 16 insertions(+), 0 deletions(-) --- (DIR) diff --git a/Makefile b/Makefile @@ -49,9 +49,12 @@ install: st chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1 tic -sx st.info @echo Please see the README file regarding the terminfo entry of st. + mkdir -p $(DESTDIR)$(APPPREFIX) + cp -f st.desktop $(DESTDIR)$(APPPREFIX) uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/st + rm -f $(DESTDIR)$(APPPREFIX)/st.desktop rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 .PHONY: all options clean dist install uninstall (DIR) diff --git a/config.mk b/config.mk @@ -5,6 +5,7 @@ VERSION = 0.9 # paths PREFIX = /usr/local +APPPREFIX = $(PREFIX)/share/applications MANPREFIX = $(PREFIX)/share/man X11INC = /usr/X11R6/include (DIR) diff --git a/st.desktop b/st.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Exec=st +TryExec=st +Icon=utilities-terminal +Terminal=false +Categories=System;TerminalEmulator; + +Name=st +GenericName=Terminal +Comment=st is a simple terminal implementation for X +StartupWMClass=st-256color