add desktop entry to xsessions

This commit is contained in:
Jakub 2025-01-24 10:19:47 -05:00
parent ed5debbb62
commit f24d073d0b
2 changed files with 13 additions and 1 deletions

View File

@ -37,9 +37,12 @@ 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
mkdir -p ${DESTDIR}${PREFIX}/share/xsessions
cp -f dwm.desktop ${DESTDIR}/usr/share/xsessions
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/dwm\
${DESTDIR}${MANPREFIX}/man1/dwm.1
${DESTDIR}${MANPREFIX}/man1/dwm.1 \
${DESTDIR}/usr/share/xsessions/dwm.desktop
.PHONY: all clean dist install uninstall

9
dwm.desktop Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=dwm
Comment=dynamic tiling window manager
Exec=dwm
TryExec=dwm
Type=Application
X-LightDM-DesktopName=dwm
DesktopNames=dwm
Keywords=tiling;wm;windowmanager;window;manager;