[gnome-logs] Add D-Bus service file



commit 4972c62c34579983ed4a65946fa9115957ed53e3
Author: David King <davidk gnome org>
Date:   Tue Apr 1 12:38:37 2014 +0100

    Add D-Bus service file
    
    Allow the application to be D-Bus activated by running with the
    --gapplication-service argument.

 .gitignore                     |    1 +
 Makefile.am                    |    3 +++
 configure.ac                   |    1 +
 data/org.gnome.Logs.service.in |    3 +++
 4 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index eb4df62..daa3387 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@ Makefile.in
 /data/gnome-logs.appdata.valid
 /data/gnome-logs.appdata.xml
 /data/gnome-logs.desktop
+/data/org.gnome.Logs.service
 /data/version.xml
 /help/*/*.mo
 /help/*/*.page
diff --git a/Makefile.am b/Makefile.am
index 334d979..d963584 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -80,6 +80,9 @@ desktop_in_files = data/gnome-logs.desktop.in
 $(desktop_in_files:.desktop.in=.desktop): data/.dstamp
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 
+servicedir = $(datadir)/dbus-1/services
+service_DATA = data/org.gnome.Logs.service
+
 if ENABLE_MAN
 data/gnome-logs.1: data/gnome-logs.xml
        $(AM_V_GEN)xsltproc --nonet --path $(builddir)/data --output $(builddir)/data/ 
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
diff --git a/configure.ac b/configure.ac
index 0ceb3d8..935c1b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -93,6 +93,7 @@ SYSTEMD_JOURNAL_REQUIRED="libsystemd-journal"
 PKG_CHECK_MODULES([LOGS], [$GIO_REQUIRED $GTK_REQUIRED $SYSTEMD_JOURNAL_REQUIRED])
 
 AC_CONFIG_FILES([
+data/org.gnome.Logs.service
 data/version.xml
 help/Makefile
 Makefile
diff --git a/data/org.gnome.Logs.service.in b/data/org.gnome.Logs.service.in
new file mode 100644
index 0000000..abc1fa3
--- /dev/null
+++ b/data/org.gnome.Logs.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.Logs
+Exec= bindir@/gnome-logs --gapplication-service


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