diff --git a/sunshine.service.in b/sunshine.service.in index 965b7871..a7ba1b6f 100644 --- a/sunshine.service.in +++ b/sunshine.service.in @@ -2,6 +2,9 @@ Description=@PROJECT_DESCRIPTION@ StartLimitIntervalSec=500 StartLimitBurst=5 +PartOf=graphical-session.target +Wants=xdg-desktop-autostart.target +After=xdg-desktop-autostart.target [Service] ExecStart=@SUNSHINE_EXECUTABLE_PATH@ @@ -9,4 +12,4 @@ Restart=on-failure RestartSec=5s [Install] -WantedBy=graphical-session.target +WantedBy=xdg-desktop-autostart.target