Sunshine Autostart not persisting between reboots
Hello,
I'm trying to get sunshine to automatically start on reboot via the ujust setup-sunshine script.
I'm pretty sure the autostart functionality is broken. After reboot the user service disappears and sunshine does not restart.
Anyone know why systemd might not see the
sunshine.service
user service after reboot? The symlink is here: /home/bazzite/.config/systemd/user/xdg-desktop-autostart.target.wants/sunshine.service
15 Replies
Well, the service is missing when I
systemctl --user list-units
. However it does exit when I do systemctl status sunshine
but it's inactive:
Maybe it's something to do with the xdg-desktop-autostart.target
not starting the service...
I made a custom user service and changed WantedBy to graphical-session.target
Seems to start fine now.
Read-only service that's not starting after reboot:
New user service that restarts properly:
Could gnome not be triggering the autostart target properly?Try run
ujust setup-sunshine
again after rebooting. Then select the option "toggle autostart"
Nevermind, looks like you came right on your own. Saw the first message and didn't see your replies afterwards π«’you need to find out why sunshine is dying on you
I had to add Sunshine to autostart in Tweaks
The service just didn't run for me
@HikariKnight It's wasn't dying, there we no service logs. I think it was not even getting started.
Must be though since it is enabled π€
I'm running into this where my sunshine doesn't persist between boots as well, on the image below

Open Ignition app and add Sunshine to autostart
Thanks, I've done this but have to start the service manually still too
Oh weird

I have to run this for it to actually start, as well. Clicking sunshine doesn't immediately open it, but restarting the service then it does very weird, sunshine/moonlight used to work like it was supposed to on GNOME image for me and I have a friend on a ROG Ally doing the same
I'm trying to get it working like it's supposed to for both of us. his is on a fresh gnome-deck-image
Mine was starting well last time I checked, but I'm using a desktop image instead of deck
Thanks for your input, I found another user who created an issue here with similar situation, also on gnome image https://github.com/ublue-os/bazzite/issues/2044
GitHub
Sunshine service failing to autostart on Bazzite gnome desktop imag...
Describe the bug It looks like there is a problem with sunshine failing to autostart on the desktop images of Bazzite. tested on bazzite-gnome-nvidia:testing-41.20250101 and bazzite-gnome:testing-4...
just found that this actually works like this, just in the background and does not show up as an entry with an icon on the top right task bar(didn't know that) thanks