[tracker/wip/carlosg/portal: 138/141] portal: Add systemd user session unit file



commit 0ee2f28f9ba5b4b7f3232ba87c57de892b775a98
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 24 17:41:05 2020 +0100

    portal: Add systemd user session unit file

 src/portal/meson.build                               | 10 ++++++++++
 src/portal/org.freedesktop.portal.Tracker.service.in |  1 +
 src/portal/xdg-tracker-portal.service.in             |  7 +++++++
 3 files changed, 18 insertions(+)
---
diff --git a/src/portal/meson.build b/src/portal/meson.build
index 975cfbfd7..bb741e282 100644
--- a/src/portal/meson.build
+++ b/src/portal/meson.build
@@ -21,3 +21,13 @@ dbus_service_file = configure_file(
     install: true,
     install_dir: dbus_services_dir,
 )
+
+if install_systemd_user_services
+    configure_file(
+        input: 'xdg-tracker-portal.service.in',
+        output: 'xdg-tracker-portal.service',
+        configuration: conf,
+        install: true,
+        install_dir: systemd_user_services_dir
+    )
+endif
diff --git a/src/portal/org.freedesktop.portal.Tracker.service.in 
b/src/portal/org.freedesktop.portal.Tracker.service.in
index 0b4cf2da8..d301b9e38 100644
--- a/src/portal/org.freedesktop.portal.Tracker.service.in
+++ b/src/portal/org.freedesktop.portal.Tracker.service.in
@@ -1,3 +1,4 @@
 [D-BUS Service]
 Name=org.freedesktop.portal.Tracker
 Exec=@libexecdir@/xdg-tracker-portal
+SystemdService=xdg-tracker-portal.service
diff --git a/src/portal/xdg-tracker-portal.service.in b/src/portal/xdg-tracker-portal.service.in
new file mode 100644
index 000000000..3927f6588
--- /dev/null
+++ b/src/portal/xdg-tracker-portal.service.in
@@ -0,0 +1,7 @@
+[Unit]
+Description=Tracker portal service
+
+[Service]
+Type=dbus
+BusName=org.freedesktop.portal.Tracker
+ExecStart=@libexecdir@/xdg-desktop-portal


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