[tracker/wip/carlosg/portal: 133/141] portal: Add DBus service file



commit dcc07aae1457a73ba1f15841cb3c12b979582ac1
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 24 14:09:13 2020 +0100

    portal: Add DBus service file
    
    So the service can be autostarted

 src/portal/meson.build                               | 8 ++++++++
 src/portal/org.freedesktop.portal.Tracker.service.in | 3 +++
 2 files changed, 11 insertions(+)
---
diff --git a/src/portal/meson.build b/src/portal/meson.build
index 2a508079d..975cfbfd7 100644
--- a/src/portal/meson.build
+++ b/src/portal/meson.build
@@ -13,3 +13,11 @@ executable('xdg-tracker-portal', sources,
     dependencies: [tracker_sparql_dep],
     include_directories: [commoninc, configinc, srcinc],
 )
+
+dbus_service_file = configure_file(
+    input: 'org.freedesktop.portal.Tracker.service.in',
+    output: 'org.freedesktop.portal.Tracker.service',
+    configuration: conf,
+    install: true,
+    install_dir: dbus_services_dir,
+)
diff --git a/src/portal/org.freedesktop.portal.Tracker.service.in 
b/src/portal/org.freedesktop.portal.Tracker.service.in
new file mode 100644
index 000000000..0b4cf2da8
--- /dev/null
+++ b/src/portal/org.freedesktop.portal.Tracker.service.in
@@ -0,0 +1,3 @@
+[D-BUS Service]
+Name=org.freedesktop.portal.Tracker
+Exec=@libexecdir@/xdg-tracker-portal


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