[wiki] [sites] [st][desktopentry] several improvements || aleks
commit 049be4356b7fb0b14390251e45e42283ccd57990
Author: aleks <aleks.stier_AT_icloud.com>
Date: Tue May 31 00:46:26 2022 +0200
[st][desktopentry] several improvements
- Add additional fields to desktop-file
- Store path to $(PREFIX)/share/applications in variable
- Mention the patch netwmicon for people who still have issues
displaying the st-icon in some applications
diff --git a/st.suckless.org/patches/desktopentry/index.md b/st.suckless.org/patches/desktopentry/index.md
index b3db3dcf..80e8e9ef 100644
--- a/st.suckless.org/patches/desktopentry/index.md
+++ b/st.suckless.org/patches/desktopentry/index.md
_AT_@ -6,9 +6,14 @@ Description
Creates a desktop-entry for st. This enables to find st in a graphical menu and
to display it with a nice icon.
+If some applications still are not displaying an icon for st try the patch
+[netwmicon](../netwmicon/). Programs like tint2 and alttab rely on a hardcoded
+icon which has to be stored by st in the \_NET\_WM\_ICON window-property.
+
Download
--------
* [st-desktopentry-0.8.4.diff](st-desktopentry-0.8.4.diff)
+* [st-desktopentry-0.8.5.diff](st-desktopentry-0.8.5.diff)
Authors
-------
diff --git a/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.5.diff b/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.5.diff
new file mode 100644
index 00000000..a53a5f5e
--- /dev/null
+++ b/st.suckless.org/patches/desktopentry/st-desktopentry-0.8.5.diff
_AT_@ -0,0 +1,64 @@
+From af28f9df9b0194311c25d60a22d1ecd98bfad2e7 Mon Sep 17 00:00:00 2001
+From: aleks <aleks.stier_AT_icloud.com>
+Date: Tue, 31 May 2022 00:33:38 +0200
+Subject: [PATCH] Create a desktop-entry for st
+
+Enables to find st in a graphical menu and to display it with a nice
+icon.
+---
+ 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 470ac86..2121877 100644
+--- a/Makefile
++++ b/Makefile
+_AT_@ -49,9 +49,12 @@ install: st
+ chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
+ tic -sx st.info
+ _AT_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/config.mk b/config.mk
+index 4c4c5d5..b79c517 100644
+--- a/config.mk
++++ b/config.mk
+_AT_@ -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
+_AT_@ -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
+--
+2.36.1
+
Received on Tue May 31 2022 - 00:50:38 CEST
This archive was generated by hypermail 2.3.0
: Tue May 31 2022 - 01:00:37 CEST