From 1e9613ba34bcb7f8533b735eaf7085fdc0305231 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Wed, 13 Jan 2021 21:06:21 +0530 Subject: [PATCH] desktop entry patch --- Makefile | 3 +++ Makefile.rej | 32 +++++++++++++------------------- st.desktop | 7 +++++++ 3 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 st.desktop diff --git a/Makefile b/Makefile index f54e2d4927b7d3761ee07e08416dd3ed299699ca..20c689c1b9741fa22abe13cb3b8cc7d39f805815 100644 --- a/Makefile +++ b/Makefile @@ -55,11 +55,14 @@ 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)$(PREFIX)/share/applications + cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/st rm -f $(DESTDIR)$(PREFIX)/bin/st-copyout rm -f $(DESTDIR)$(PREFIX)/bin/st-urlhandler rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 + rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop .PHONY: all options clean dist install uninstall diff --git a/Makefile.rej b/Makefile.rej index 1a2df360b7eaa30990137b92b771c9a53a5a3db2..7d995e7c35c628b1bbb034cc2db475619bead7ae 100644 --- a/Makefile.rej +++ b/Makefile.rej @@ -1,21 +1,15 @@ --- Makefile +++ Makefile -@@ -4,7 +4,7 @@ - - include config.mk - --SRC = st.c x.c -+SRC = st.c x.c hb.c - OBJ = $(SRC:.c=.o) - - all: options st -@@ -22,7 +22,8 @@ config.h: - $(CC) $(STCFLAGS) -c $< - - st.o: config.h st.h win.h --x.o: arg.h config.h st.h win.h -+x.o: arg.h config.h st.h win.h hb.h -+hb.o: st.h - - $(OBJ): config.h config.mk - +@@ -50,9 +50,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)$(PREFIX)/share/applications ++ cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications + + uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/st + rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1 ++ rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop + + .PHONY: all options clean dist install uninstall diff --git a/st.desktop b/st.desktop new file mode 100644 index 0000000000000000000000000000000000000000..a1b51161f21cc23d29ba0ade91630a1fdce4f013 --- /dev/null +++ b/st.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Type=Application +Name=st +Comment=simple-terminal emulator for X +Icon=utilities-terminal +Exec=st +Categories=System;TerminalEmulator