From ad7b2dc63b12577f1c67c998490f11a488f60e7e Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Sun, 2 Mar 2025 03:06:16 -0300 Subject: Desktop entry patch https://st.suckless.org/patches/desktopentry/ --- Makefile | 3 +++ config.mk | 1 + st.desktop | 12 ++++++++++++ 3 files changed, 16 insertions(+) create mode 100644 st.desktop diff --git a/Makefile b/Makefile index 15db421..4158da2 100644 --- a/Makefile +++ b/Makefile @@ -43,9 +43,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 clean dist install uninstall diff --git a/config.mk b/config.mk index fdc29a7..a6c3829 100644 --- a/config.mk +++ b/config.mk @@ -5,6 +5,7 @@ VERSION = 0.9.2 # paths PREFIX = /usr/local +APPPREFIX = $(PREFIX)/share/applications MANPREFIX = $(PREFIX)/share/man X11INC = /usr/X11R6/include diff --git a/st.desktop b/st.desktop new file mode 100644 index 0000000..3025075 --- /dev/null +++ b/st.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Type=Application +Exec=st +TryExec=st +Icon=utilities-terminal +Terminal=false +Categories=System;TerminalEmulator; + +Name=Simple Terminal +GenericName=Terminal +Comment=st is a simple terminal implementation for X +StartupWMClass=st-256color -- cgit v1.2.3