From 6eb08bd614bcb8c7b231f08c4c252730116a10d5 Mon Sep 17 00:00:00 2001 From: Oshgnacknak Date: Fri, 3 Jun 2022 10:33:15 +0200 Subject: [PATCH] Apply desktop entry patch --- Makefile | 3 +++ README | 1 + config.mk | 1 + st.desktop | 12 ++++++++++++ 4 files changed, 17 insertions(+) create mode 100644 st.desktop diff --git a/Makefile b/Makefile index 470ac86..2121877 100644 --- 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 diff --git a/README b/README index a1a71a1..41cfce2 100644 --- a/README +++ b/README @@ -38,3 +38,4 @@ Applied Patches https://st.suckless.org/patches/scrollback/ https://st.suckless.org/patches/alpha/ https://st.suckless.org/patches/w3m/ +http://st.suckless.org/patches/desktopentry/ diff --git a/config.mk b/config.mk index 7ec090b..55d0008 100644 --- a/config.mk +++ b/config.mk @@ -5,6 +5,7 @@ VERSION = 0.8.5 # 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..2d2b76f --- /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=st +GenericName=Terminal +Comment=st is a simple terminal implementation for X +StartupWMClass=st-256color