Skip to content
Snippets Groups Projects
Commit ade6805e authored by Simon McVittie's avatar Simon McVittie Committed by Alexander Schwinn
Browse files

Add a systemd user unit for the two D-Bus session services (bug #12236)

parent 23894cd9
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
[D-BUS Service]
Name=org.xfce.FileManager
Exec=@bindir@/Thunar --gapplication-service
SystemdService=thunar.service
\ No newline at end of file
[D-BUS Service]
Name=org.xfce.Thunar
Exec=@bindir@/Thunar --gapplication-service
SystemdService=thunar.service
\ No newline at end of file
[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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment