summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorP.P.A <adolphs@moselle.moe>2023-07-08 12:20:01 +0200
committerP.P.A <adolphs@moselle.moe>2023-07-08 12:20:01 +0200
commitac5a5e7a1cc72b0bdfe2e3373be3893d7fafc608 (patch)
tree90fd4ab6cc1fbf33a58750538776fac7db787652
parent5ca9ccdc6328acf10ff421346f74545e515eb353 (diff)
desktopentry
-rw-r--r--Makefile3
-rw-r--r--config.mk1
-rw-r--r--st.desktop12
3 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 470ac86..2121877 100644
--- a/Makefile
+++ b/Makefile
@@ -49,9 +49,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)$(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 47c615e..a071112 100644
--- a/config.mk
+++ b/config.mk
@@ -5,6 +5,7 @@ VERSION = 0.9
# 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
@@ -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