sites

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

st-desktopentry-0.8.2.diff (1169B)


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