aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-04-16 15:43:50 +0200
committerMateja <mail@matejamaric.com>2021-04-16 16:01:13 +0200
commitdc8b55278720168a2c83b7722ee3208f2c808fd1 (patch)
tree42593be3880c8f2d135cd2d63553b1680bf8dc1e
parent114fe4d2f75c352a545d614c6b1d48832bf2b41d (diff)
downloaddwm-dc8b55278720168a2c83b7722ee3208f2c808fd1.tar.gz
dwm-dc8b55278720168a2c83b7722ee3208f2c808fd1.zip
Add `.desktop` file for display managers.
-rw-r--r--Makefile2
-rw-r--r--dwm.desktop7
2 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 77bcbc0..b3dbe1e 100644
--- a/Makefile
+++ b/Makefile
@@ -43,9 +43,11 @@ install: all
mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
+ cp -f dwm.desktop /usr/share/xsessions/
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
${DESTDIR}${MANPREFIX}/man1/dwm.1
+ rm -f /usr/share/xsessions/dwm.desktop
.PHONY: all options clean dist install uninstall
diff --git a/dwm.desktop b/dwm.desktop
new file mode 100644
index 0000000..a3e5cd4
--- /dev/null
+++ b/dwm.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=DWM
+Comment=Mateja's fork of DWM
+Exec=dwm
+Icon=dwm
+Type=XSession