[gnome-packagekit] Ensure the gpk-update-icon service is running by activating it if somebody uses the interface. Fixes



commit 30e14ae82d048f6669a8e3962cace5c1aa5827de
Author: Richard Hughes <richard hughsie com>
Date:   Wed Dec 16 15:55:28 2009 +0000

    Ensure the gpk-update-icon service is running by activating it if somebody uses the interface. Fixes rh#548095

 data/.gitignore                            |    1 +
 data/Makefile.am                           |   10 ++++++++++
 data/org.freedesktop.PackageKit.service.in |    4 ++++
 3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/data/.gitignore b/data/.gitignore
index 8105e95..69b384e 100644
--- a/data/.gitignore
+++ b/data/.gitignore
@@ -6,4 +6,5 @@ Makefile.in
 *.gladep
 *.gladep.bak
 .svn
+org.freedesktop.PackageKit.service
 
diff --git a/data/Makefile.am b/data/Makefile.am
index f3a2eca..13bec12 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -41,11 +41,20 @@ pkgdata_DATA =						\
 	gpk-client.ui					\
 	$(NULL)
 
+
+servicedir = $(datadir)/dbus-1/services
+service_in_files = org.freedesktop.PackageKit.service.in
+service_DATA = $(service_in_files:.service.in=.service)
+
+$(service_DATA): $(service_in_files) Makefile
+	@sed -e "s|\ servicedir\@|$(bindir)|" $< > $@
+
 EXTRA_DIST =						\
 	$(schema_in_files)				\
 	$(desktop_in_files)				\
 	$(autostart_in_files)				\
 	$(pkgdata_DATA)					\
+	$(service_in_files)				\
 	$(NULL)
 
 if GCONF_SCHEMAS_INSTALL
@@ -74,5 +83,6 @@ DISTCLEANFILES =					\
 	gpk-update-icon.desktop				\
 	gpk-application.desktop				\
 	gnome-packagekit.schemas			\
+	org.freedesktop.PackageKit.service			\
 	$(NULL)
 
diff --git a/data/org.freedesktop.PackageKit.service.in b/data/org.freedesktop.PackageKit.service.in
new file mode 100644
index 0000000..fdc13ce
--- /dev/null
+++ b/data/org.freedesktop.PackageKit.service.in
@@ -0,0 +1,4 @@
+[D-BUS Service]
+Name=org.freedesktop.PackageKit
+Exec= servicedir@/gpk-update-icon
+



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