[gnome-color-manager] Add an autolaunch service entry for the new DBus service
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] Add an autolaunch service entry for the new DBus service
- Date: Fri, 6 Nov 2009 10:39:23 +0000 (UTC)
commit dae3c73e9852e02e9036832e46907d468901c722
Author: Richard Hughes <richard hughsie com>
Date: Fri Nov 6 10:21:54 2009 +0000
Add an autolaunch service entry for the new DBus service
data/.gitignore | 2 ++
data/Makefile.am | 8 +++++++-
data/org.gnome.ColorManager.service.in | 3 +++
3 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/data/.gitignore b/data/.gitignore
index f5fd746..c5172e4 100644
--- a/data/.gitignore
+++ b/data/.gitignore
@@ -5,3 +5,5 @@ Makefile.in
*.glade.bak
*.gladep
*.gladep.bak
+org.gnome.ColorManager.service
+
diff --git a/data/Makefile.am b/data/Makefile.am
index 8a240f7..736070e 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -12,7 +12,6 @@ desktopdir = $(datadir)/applications
desktop_in_files = \
gcm-prefs.desktop.in \
gcm-import.desktop.in
-
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
@@ -20,6 +19,13 @@ autostartdir = $(sysconfdir)/xdg/autostart
autostart_in_files = gcm-apply.desktop.in
autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
+servicedir = $(datadir)/dbus-1/services
+service_in_files = org.gnome.ColorManager.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+$(service_DATA): $(service_in_files) Makefile
+ @sed -e "s|\ servicedir\@|$(bindir)|" $< > $@
+
pkgdata_DATA = \
gcm-calibrate.ui \
gcm-prefs.ui
diff --git a/data/org.gnome.ColorManager.service.in b/data/org.gnome.ColorManager.service.in
new file mode 100644
index 0000000..d4abf94
--- /dev/null
+++ b/data/org.gnome.ColorManager.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.ColorManager
+Exec= servicedir@/gcm-service
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]