Add desktop files master
authorAndy Spencer <andy753421@gmail.com>
Sun, 17 Mar 2013 07:21:07 +0000 (07:21 +0000)
committerAndy Spencer <andy753421@gmail.com>
Tue, 10 Jun 2014 04:29:04 +0000 (04:29 +0000)
makefile
wmpus.desktop [new file with mode: 0644]
wmpus.session [new file with mode: 0644]

index 7dec604..caceac9 100644 (file)
--- a/makefile
+++ b/makefile
@@ -32,8 +32,11 @@ dist:
                README LICENSE config.mk.example makefile *.1 *.c *.h
 
 install: all
+       sed -i 's:/usr.*:$(PREFIX)/bin/wmpus:' wmpus.session
        install -m 755 -D $(PROG) $(DESTDIR)$(PREFIX)/bin/$(PROG)
        install -m 644 -D wmpus.1 $(DESTDIR)$(MANPREFIX)/man1/wmpus.1
+       install -m 755 -D wmpus.session $(DESTDIR)/etc/X11/Sessions/wmpus
+       install -m 644 -D wmpus.desktop $(DESTDIR)$(PREFIX)/share/xsessions/wmpus.desktop
 
 uninstall:
        rm -f $(DESTDIR)$(PREFIX)/bin/$(PROG)
diff --git a/wmpus.desktop b/wmpus.desktop
new file mode 100644 (file)
index 0000000..7cb5c8a
--- /dev/null
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=wmpus
+Comment=a cross platform window manager
+Exec=/etc/X11/Sessions/wmpus
+TryExec=wmpus
+Icon=
+Type=Application
diff --git a/wmpus.session b/wmpus.session
new file mode 100644 (file)
index 0000000..74c2fbf
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec /usr/bin/wmpus