This is an automated email from the git hooks/post-receive script.

alex pushed a 
commit to branch 
master
in repository xfce/thunar.

commit ade6805e05de32a6fb34283becfd4ffc0419b88d
Author: Simon McVittie <simon.mcvit...@collabora.co.uk>
Date:   Fri Feb 9 21:47:11 2018 +0100

     Add a systemd user unit for the two D-Bus session services (bug #12236)
---
 Makefile.am                     | 13 ++++++++++---
 org.xfce.FileManager.service.in |  1 +
 org.xfce.Thunar.service.in      |  1 +
 thunar.service.in               | 10 ++++++++++
 4 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index f697f3a..befedfb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -65,7 +65,7 @@ desktop_in_in_files =                                         
                \
        Thunar-bulk-rename.desktop.in.in                                \
        Thunar-folder-handler.desktop.in.in
 desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
-%.desktop.in: %.desktop.in.in
+%.desktop.in: %.desktop.in.in Makefile
        $(AM_V_GEN) $(SED) -e "s,\@HELPERDIR\@,$(HELPER_PATH_PREFIX),g" < $< > 
$@
 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 @INTLTOOL_DESKTOP_RULE@
@@ -81,14 +81,19 @@ appdata_in_files = thunar.appdata.xml.in
 servicedir = $(datadir)/dbus-1/services
 service_in_files = org.xfce.FileManager.service.in org.xfce.Thunar.service.in
 service_DATA = $(service_in_files:.service.in=.service)
-%.service: %.service.in
+
+systemd_userdir = $(prefix)/lib/systemd/user
+systemd_user_in_files = thunar.service.in
+systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
+
+%.service: %.service.in Makefile
        $(AM_V_GEN) $(SED) -e "s,\@bindir\@,$(bindir),g" < $< > $@
 
 polkit_policydir = $(datadir)/polkit-1/actions
 polkit_in_in_files =                   \
        org.xfce.thunar.policy.in.in
 polkit_in_files = $(polkit_in_in_files:.policy.in.in=.policy.in)
-%.policy.in: %.policy.in.in
+%.policy.in: %.policy.in.in Makefile
        sed -e "s,\@bindir\@,$(bindir),g" < $< > $@
 polkit_policy_DATA = $(polkit_in_files:.policy.in=.policy)
 @INTLTOOL_POLICY_RULE@
@@ -102,6 +107,7 @@ EXTRA_DIST =                                                
                \
        intltool-update.in                                              \
        $(desktop_in_in_files)                                          \
        $(service_in_files)                                             \
+       $(systemd_user_in_files)                                        \
        $(appdata_in_files)                                             \
        $(polkit_in_in_files)                                   \
        m4/introspection.m4
@@ -116,6 +122,7 @@ DISTCLEANFILES =                                            
        \
        $(desktop_in_files)                                             \
        $(desktop_DATA)                                                 \
        $(service_DATA)                                                 \
+       $(systemd_user_DATA)                                            \
        $(polkit_in_files)                                              \
        $(polkit_policy_DATA)
 
diff --git a/org.xfce.FileManager.service.in b/org.xfce.FileManager.service.in
index 0d90bfa..0fbb2b1 100644
--- a/org.xfce.FileManager.service.in
+++ b/org.xfce.FileManager.service.in
@@ -1,3 +1,4 @@
 [D-BUS Service]
 Name=org.xfce.FileManager
 Exec=@bindir@/Thunar --gapplication-service
+SystemdService=thunar.service
\ No newline at end of file
diff --git a/org.xfce.Thunar.service.in b/org.xfce.Thunar.service.in
index 2eea0e6..4bd1a26 100644
--- a/org.xfce.Thunar.service.in
+++ b/org.xfce.Thunar.service.in
@@ -1,3 +1,4 @@
 [D-BUS Service]
 Name=org.xfce.Thunar
 Exec=@bindir@/Thunar --gapplication-service
+SystemdService=thunar.service
\ No newline at end of file
diff --git a/thunar.service.in b/thunar.service.in
new file mode 100644
index 0000000..5b5203b
--- /dev/null
+++ b/thunar.service.in
@@ -0,0 +1,10 @@
+[Unit]
+Description=Thunar file manager
+Documentation=man:Thunar(1)
+
+[Service]
+Type=dbus
+ExecStart=@bindir@/Thunar --daemon
+# This is the name that is taken second, so by the time this one is taken,
+# we know everything is good.
+BusName=org.xfce.FileManager

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to