[PATCH weston] build: install a login manager session entry

Lubomir Rintel lkundrak at v3.sk
Sun Dec 28 05:20:49 PST 2014


This makes it possible to run Weston session from GDM (and possibly
other login managers).
---
 Makefile.am        | 5 +++++
 src/weston.desktop | 5 +++++
 2 files changed, 10 insertions(+)
 create mode 100644 src/weston.desktop

diff --git a/Makefile.am b/Makefile.am
index 3a37be0..b10d6bf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -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
index 0000000..102ee17
--- /dev/null
+++ b/src/weston.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Name=Weston
+Comment=The reference Wayland server
+Exec=dbus-launch --exit-with-session weston
+Type=Application
-- 
2.1.0



More information about the wayland-devel mailing list