[gnome-boxes/wip/feborges/meson: 1/2] data: Add DBus activable service file
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/feborges/meson: 1/2] data: Add DBus activable service file
- Date: Thu, 15 Jun 2017 13:36:17 +0000 (UTC)
commit bf2471b1adf2f588b40b03dc986f0ed94af545b4
Author: Felipe Borges <felipeborges gnome org>
Date: Mon Jun 5 16:41:54 2017 +0200
data: Add DBus activable service file
We were generating the dbus service file from within
the Makefile.
With the port to meson, it is more sane to have an
service.in file instead.
data/Makefile.am | 7 ++-----
data/org.gnome.Boxes.service.in | 3 +++
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index bf247f4..62593cb 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -44,11 +44,8 @@ resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies $(gre
dbusservicedir = $(datadir)/dbus-1/services
dbusservice_DATA = org.gnome.Boxes.service
-org.gnome.Boxes.service: Makefile
- $(AM_V_GEN) (echo '[D-BUS Service]'; \
- echo 'Name=org.gnome.Boxes'; \
- echo 'Exec=${bindir}/gnome-boxes --gapplication-service') > $@.tmp && \
- mv $@.tmp $@
+org.gnome.Boxes.service: org.gnome.Boxes.service.in Makefile
+ $(AM_V_GEN)$(SED) -e "s|[@]bindir[@]|$(bindir)|" $< > $@
EXTRA_DIST = \
org.gnome.Boxes.desktop.in \
diff --git a/data/org.gnome.Boxes.service.in b/data/org.gnome.Boxes.service.in
new file mode 100644
index 0000000..7df5038
--- /dev/null
+++ b/data/org.gnome.Boxes.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.Boxes
+Exec=@bindir@/gnome-boxes --gapplication-service
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]