[devhelp] meson: D-Bus service file



commit 0411af8c210378a41b9f72a3715953c6843e3e90
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Mar 12 17:17:20 2018 +0100

    meson: D-Bus service file

 data/meson.build                  |   11 +++++++++++
 data/org.gnome.Devhelp.service.in |    3 +++
 2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/data/meson.build b/data/meson.build
index 1082859..d506d0f 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -25,6 +25,17 @@ I18N.merge_file(
         install_dir : join_paths(get_option('prefix'), get_option('datadir'), 'applications')
 )
 
+service_file = 'org.gnome.Devhelp.service'
+service_conf = configuration_data()
+service_conf.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
+configure_file(
+        input : service_file + '.in',
+        output : service_file,
+        configuration : service_conf,
+        install : true,
+        install_dir : join_paths(get_option('prefix'), get_option('datadir'), 'dbus-1/services')
+)
+
 install_data(
         ['assistant.css', 'assistant.js'],
         install_dir : join_paths(get_option('prefix'), get_option('datadir'), 'devhelp', 'assistant')
diff --git a/data/org.gnome.Devhelp.service.in b/data/org.gnome.Devhelp.service.in
new file mode 100644
index 0000000..3555cfd
--- /dev/null
+++ b/data/org.gnome.Devhelp.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.gnome.Devhelp
+Exec=@bindir@/devhelp --gapplication-service


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