Use xdg-desktop-autostart.target for systemd service. (#901)
This commit is contained in:
parent
e20ca7a8f0
commit
a192c504cd
1 changed files with 4 additions and 1 deletions
|
|
@ -2,6 +2,9 @@
|
||||||
Description=@PROJECT_DESCRIPTION@
|
Description=@PROJECT_DESCRIPTION@
|
||||||
StartLimitIntervalSec=500
|
StartLimitIntervalSec=500
|
||||||
StartLimitBurst=5
|
StartLimitBurst=5
|
||||||
|
PartOf=graphical-session.target
|
||||||
|
Wants=xdg-desktop-autostart.target
|
||||||
|
After=xdg-desktop-autostart.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=@SUNSHINE_EXECUTABLE_PATH@
|
ExecStart=@SUNSHINE_EXECUTABLE_PATH@
|
||||||
|
|
@ -9,4 +12,4 @@ Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=graphical-session.target
|
WantedBy=xdg-desktop-autostart.target
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue