[cheese] Add D-Bus service file
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Add D-Bus service file
- Date: Tue, 1 Apr 2014 13:07:29 +0000 (UTC)
commit c6edcbaf218f2ff8bca686d38ada71f61a6bf559
Author: David King <amigadave amigadave com>
Date: Tue Apr 1 13:58:59 2014 +0100
Add D-Bus service file
Allow the application to be D-Bus activated by running with the
--gapplication-service argument.
.gitignore | 2 +-
Makefile.am | 3 +++
configure.ac | 1 +
data/org.gnome.Cheese.service.in | 3 +++
4 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a307929..976ca07 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,8 +23,8 @@ Makefile.in*
/data/*.desktop.in
/data/cheese-gtk.pc
/data/cheese.pc
-/data/org.gnome.Cheese.service
/data/org.gnome.Cheese.gschema.valid
+/data/org.gnome.Cheese.service
/docs/reference/html/
/docs/reference/xml/
/docs/reference/*.stamp
diff --git a/Makefile.am b/Makefile.am
index c0bd8cd..bc2f5aa 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -320,6 +320,9 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
appdata_in_files = data/cheese.appdata.xml.in
appdata_XML = $(appdata_in_files:.appdata.xml.in=.appdata.xml)
+servicedir = $(datadir)/dbus-1/services
+service_DATA = data/org.gnome.Cheese.service
+
@GSETTINGS_RULES@
gsettings_SCHEMAS = data/org.gnome.Cheese.gschema.xml
diff --git a/configure.ac b/configure.ac
index 0d3fa42..4e1e67d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -218,6 +218,7 @@ docs/reference/version.xml
data/cheese.pc
data/cheese-gtk.pc
data/cheese.desktop.in
+data/org.gnome.Cheese.service
help/Makefile
po/Makefile.in
])
diff --git a/data/org.gnome.Cheese.service.in b/data/org.gnome.Cheese.service.in
new file mode 100644
index 0000000..2dadebc
--- /dev/null
+++ b/data/org.gnome.Cheese.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.Cheese
+Exec= bindir@/cheese --gapplication-service
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]