[gnome-session/wip/cleanups: 11/15] Add D-Bus service file for the end session dialog



commit d20ab05b9cbbc23f59c53cddd1171f88bbaf1d5a
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Nov 11 23:34:45 2012 -0500

    Add D-Bus service file for the end session dialog
    
    This is necessary in order for the fallback dialog to be
    activated when we want to show a dialog, and the shell
    is not around.

 data/Makefile.am                 |   12 ++++++++++--
 data/endsessiondialog.service.in |    3 +++
 2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 6f0fb33..5f0e047 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -37,18 +37,26 @@ gsettings_SCHEMAS = org.gnome.SessionManager.gschema.xml
 migrationdir = $(datadir)/GConf/gsettings
 dist_migration_DATA = gnome-session.convert
 
+servicedir= $(datadir)/dbus-1/services
+service_DATA = endsessiondialog.service
+
+%.service: %.service.in Makefile
+	$(AM_V_GEN)sed -e "s|\ LIBEXECDIR\@|$(libexecdir)|" $< > $@
+
 EXTRA_DIST =					\
 	$(xsession_in_files)			\
 	$(session_in_in_files)			\
 	$(gsettings_SCHEMAS:.xml=.xml.in)	\
 	$(ui_DATA)				\
-	$(hwcompat_DATA)
+	$(hwcompat_DATA)			\
+	$(service_data:.service=.service.in)
 
 CLEANFILES =					\
 	$(gsettings_SCHEMAS)			\
 	$(xsession_DATA)			\
 	$(desktop_DATA)				\
-	$(session_DATA)
+	$(session_DATA)				\
+	$(service_DATA)
 
 DISTCLEANFILES =				\
 	$(gsettings_SCHEMAS)			\
diff --git a/data/endsessiondialog.service.in b/data/endsessiondialog.service.in
new file mode 100644
index 0000000..bcbe88e
--- /dev/null
+++ b/data/endsessiondialog.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.SessionManager.EndSessionDialog
+Exec= LIBEXECDIR@/gnome-session-end-dialog



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]