summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWeiseguy <info@weiseguy.com>2023-09-22 06:50:35 -0500
committerLeonardo Hernández <leohdz172@proton.me>2023-09-22 19:49:18 -0600
commit773bd04764f8407f90bf5bd10d62cd1712594892 (patch)
tree027d22cdea4510b6d736a9aa93d54e27917b0657
parent755fcae2afbed51f38c167bdc56a5437cda8137a (diff)
Add desktop entry file
-rw-r--r--Makefile5
-rw-r--r--dwl.desktop5
2 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ccca079..09c2c53 100644
--- a/Makefile
+++ b/Makefile
@@ -52,8 +52,11 @@ install: dwl
mkdir -p $(DESTDIR)$(MANDIR)/man1
cp -f dwl.1 $(DESTDIR)$(MANDIR)/man1
chmod 644 $(DESTDIR)$(MANDIR)/man1/dwl.1
+ mkdir -p $(DESTDIR)$(PREFIX)/share/wayland-sessions
+ cp -f dwl.desktop $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop
+ chmod 644 $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop
uninstall:
- rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1
+ rm -f $(DESTDIR)$(PREFIX)/bin/dwl $(DESTDIR)$(MANDIR)/man1/dwl.1 $(DESTDIR)$(PREFIX)/share/wayland-sessions/dwl.desktop
.SUFFIXES: .c .o
.c.o:
diff --git a/dwl.desktop b/dwl.desktop
new file mode 100644
index 0000000..e1380f7
--- /dev/null
+++ b/dwl.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=dwl
+Comment=dwm for Wayland
+Exec=dwl
+Type=Application