commit 4c919ee172a2cf0b09772cdcbd1bd1e58f2bb445
Author: aleks <[email protected]>
Date:   Sun Aug 11 02:39:58 2019 +0200

    [st][patch][desktopentry] Add patch

diff --git a/st.suckless.org/patches/desktopentry/index.md 
b/st.suckless.org/patches/desktopentry/index.md
new file mode 100644
index 00000000..f128680a
--- /dev/null
+++ b/st.suckless.org/patches/desktopentry/index.md
@@ -0,0 +1,19 @@
+desktopentry
+============
+
+Description
+-----------
+Enable to find st in a graphical menu and to display it with a nice icon.
+
+After applying this patch you need to run `sudo make install` to
+install the desktop-entry. The Makefile is modified such that a symlink
+to */usr/share/applications/st.desktop* is created during install and
+removed during uninstall.
+
+Download
+--------
+* [st-desktopentry-0.8.2.diff](st-desktopentry-0.8.2.diff)
+
+Authors
+-------
+* Aleksandrs Stier
diff --git a/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff 
b/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff
new file mode 100644
index 00000000..b2cb35df
--- /dev/null
+++ b/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.2.diff
@@ -0,0 +1,50 @@
+From d0ffefad4c80f45b689aba7dc64c6d155afcdc16 Mon Sep 17 00:00:00 2001
+From: aleks <[email protected]>
+Date: Sun, 11 Aug 2019 02:20:42 +0200
+Subject: [PATCH] Add a desktop-entry
+
+Enable to find st in a graphical menu and to display it with a nice
+icon.
+
+After applying this patch you need to run `sudo make install` to
+install the desktop-entry. The Makefile is modified such that a symlink
+to */usr/share/applications/st.desktop* is created during install and
+removed during uninstall.
+---
+ Makefile   | 2 ++
+ st.desktop | 7 +++++++
+ 2 files changed, 9 insertions(+)
+ create mode 100644 st.desktop
+
+diff --git a/Makefile b/Makefile
+index 470ac86..0a58d61 100644
+--- a/Makefile
++++ b/Makefile
+@@ -49,9 +49,11 @@ 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.
++      sudo ln -frs st.desktop /usr/share/applications
+ 
+ uninstall:
+       rm -f $(DESTDIR)$(PREFIX)/bin/st
+       rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
++      rm -f /usr/share/applications/st.desktop
+ 
+ .PHONY: all options clean dist install uninstall
+diff --git a/st.desktop b/st.desktop
+new file mode 100644
+index 0000000..0663e37
+--- /dev/null
++++ b/st.desktop
+@@ -0,0 +1,7 @@
++[Desktop Entry]
++Type=Application
++Name=st
++Comment=suckless terminal-emulator for X
++Icon=utilities-terminal
++Exec=st
++Categories=System;TerminalEmulator
+-- 
+2.22.0
+


Reply via email to