summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormonosans <[email protected]>2022-09-26 08:03:12 +0000
committerGitHub <[email protected]>2022-09-26 10:03:12 +0200
commit1ac17a493705d150cb4b92ca7e33fb98b51de4c7 (patch)
tree11ec4629ed808a9116e64aa279e713917a87e297
parent82a127630d4af24b587a575df50c564705c93e27 (diff)
downloaddwm-flexipatch-1ac17a493705d150cb4b92ca7e33fb98b51de4c7.tar.gz
dwm-flexipatch-1ac17a493705d150cb4b92ca7e33fb98b51de4c7.zip
Add dwm.desktop file (#301)
-rw-r--r--Makefile6
-rw-r--r--dwm.desktop7
2 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c2ea8df..01ea136 100644
--- a/Makefile
+++ b/Makefile
@@ -65,9 +65,13 @@ endif
mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < dwm.1 > ${DESTDIR}${MANPREFIX}/man1/dwm.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/dwm.1
+ mkdir -p ${DESTDIR}${PREFIX}/share/xsession
+ cp -n dwm.desktop ${DESTDIR}${PREFIX}/share/xsession
+ chmod 644 ${DESTDIR}${PREFIX}/share/xsession/dwm.desktop
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
- ${DESTDIR}${MANPREFIX}/man1/dwm.1
+ ${DESTDIR}${MANPREFIX}/man1/dwm.1\
+ ${DESTDIR}${PREFIX}/share/xsession/dwm.desktop
.PHONY: all options clean dist install uninstall
diff --git a/dwm.desktop b/dwm.desktop
new file mode 100644
index 0000000..b0c3354
--- /dev/null
+++ b/dwm.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Dwm
+Comment=Dynamic window manager
+Exec=dwm
+Icon=dwm
+Type=XSession