build: install a login manager session entry
authorLubomir Rintel <lkundrak@v3.sk>
Sun, 28 Dec 2014 13:20:49 +0000 (14:20 +0100)
committerBryce Harrington <bryce@osg.samsung.com>
Wed, 21 Jan 2015 03:44:58 +0000 (19:44 -0800)
This makes it possible to run Weston session from GDM (and possibly
other login managers).

Makefile.am
src/weston.desktop [new file with mode: 0644]

index 3a37be0..b10d6bf 100644 (file)
@@ -156,6 +156,11 @@ endif # BUILD_WESTON_LAUNCH
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = src/weston.pc
 
+EXTRA_DIST += $(wayland_session_DATA)
+
+wayland_sessiondir = $(datadir)/wayland-sessions
+wayland_session_DATA = src/weston.desktop
+
 westonincludedir = $(includedir)/weston
 westoninclude_HEADERS =                                \
        src/version.h                           \
diff --git a/src/weston.desktop b/src/weston.desktop
new file mode 100644 (file)
index 0000000..102ee17
--- /dev/null
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=Weston
+Comment=The reference Wayland server
+Exec=dbus-launch --exit-with-session weston
+Type=Application