sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

st-desktopentry-0.8.4.diff (1314B)


      1 From b9ce8f6df1d2318d2aa8ec9668ec227cfe327e5c Mon Sep 17 00:00:00 2001
      2 From: aleks <aleks.stier@icloud.com>
      3 Date: Wed, 27 May 2020 01:35:15 +0200
      4 Subject: [PATCH] Create a desktop-entry for st
      5 
      6 Creates a desktop-entry for st. This enables to find st in a graphical
      7 menu and to display it with a nice icon.
      8 
      9 ---
     10  Makefile   | 3 +++
     11  st.desktop | 8 ++++++++
     12  2 files changed, 11 insertions(+)
     13  create mode 100644 st.desktop
     14 
     15 diff --git a/Makefile b/Makefile
     16 index fd1321e..6e79a1c 100644
     17 --- a/Makefile
     18 +++ b/Makefile
     19 @@ -49,9 +49,12 @@ install: st
     20  	chmod 644 $(DESTDIR)$(MANPREFIX)/man1/st.1
     21  	tic -sx st.info
     22  	@echo Please see the README file regarding the terminfo entry of st.
     23 +	mkdir -p $(DESTDIR)$(PREFIX)/share/applications
     24 +	cp -f st.desktop $(DESTDIR)$(PREFIX)/share/applications
     25  
     26  uninstall:
     27  	rm -f $(DESTDIR)$(PREFIX)/bin/st
     28  	rm -f $(DESTDIR)$(MANPREFIX)/man1/st.1
     29 +	rm -f $(DESTDIR)$(PREFIX)/share/applications/st.desktop
     30  
     31  .PHONY: all options clean dist install uninstall
     32 diff --git a/st.desktop b/st.desktop
     33 new file mode 100644
     34 index 0000000..e4e0714
     35 --- /dev/null
     36 +++ b/st.desktop
     37 @@ -0,0 +1,8 @@
     38 +[Desktop Entry]
     39 +Name=st
     40 +Comment=st is a simple terminal implementation for X
     41 +Exec=st
     42 +Icon=utilities-terminal
     43 +Terminal=false
     44 +Type=Application
     45 +Categories=System;TerminalEmulator;
     46 -- 
     47 2.31.0
     48