[tracker/wip/carlosg/portal: 33/40] portal: Add systemd user session unit file
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/portal: 33/40] portal: Add systemd user session unit file
- Date: Sun, 12 Jul 2020 17:54:20 +0000 (UTC)
commit 4258f5fe55c564074118ad6d0a1e68bde3ebdb2d
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/tracker-xdg-portal.service.in | 7 +++++++
3 files changed, 18 insertions(+)
---
diff --git a/src/portal/meson.build b/src/portal/meson.build
index 65a5f584e..944d46745 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: 'tracker-xdg-portal.service.in',
+ output: 'tracker-xdg-portal-@0@.service'.format(tracker_api_major),
+ 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 7b32545d7..0894a108d 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@/tracker-xdg-portal-3
+SystemdService=tracker-xdg-portal-3.service
diff --git a/src/portal/tracker-xdg-portal.service.in b/src/portal/tracker-xdg-portal.service.in
new file mode 100644
index 000000000..441c3a14e
--- /dev/null
+++ b/src/portal/tracker-xdg-portal.service.in
@@ -0,0 +1,7 @@
+[Unit]
+Description=Tracker portal service
+
+[Service]
+Type=dbus
+BusName=org.freedesktop.portal.Tracker
+ExecStart=@libexecdir@/tracker-xdg-portal-3
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]