1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-02 15:48:59 +00:00

shell: Don't reference systemd service

It doesn't get exported outside the sandbox, so the session systemd
doesn't know how to start it. The information in the systemd .service
file should be enough for systemd to correlate the two when running
outside the sandbox.
This commit is contained in:
Bastien Nocera 2018-09-22 12:05:29 +02:00
parent 4998e65a05
commit dfc7207b94
2 changed files with 4 additions and 13 deletions

View File

@ -48,20 +48,12 @@ systemd_user_DATA = $(systemd_user_in_files:.service.in=.service)
$(systemd_user_DATA): $(systemd_user_in_files) Makefile
$(AM_V_GEN) $(SED) -e "s|\@libexecdir\@|$(libexecdir)|" $< > $@
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) \
-e "s|\@libexecdir\@|$(libexecdir)|" \
-e "s|@if_systemd_service@||" \
$< > $@
else
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) \
-e "s|\@libexecdir\@|$(libexecdir)|" \
-e "s|@if_systemd_service@|#|" \
$< > $@
endif
$(service_DATA): $(service_in_files) Makefile
$(AM_V_GEN) $(SED) \
-e "s|\@libexecdir\@|$(libexecdir)|" \
$< > $@
endif
#

View File

@ -1,4 +1,3 @@
[D-BUS Service]
Name=org.gnome.Evince.Daemon
Exec=@libexecdir@/evinced
@if_systemd_service@SystemdService=org.gnome.Evince.service