Skip to content
Discussion options

You must be logged in to vote

The key line in your log is this one:

Error: [kwingrab] WAYLAND_DISPLAY not set

Your unit is a system service (User=myUser just changes the uid it runs as). System services start in the system manager's environment, so they never get your session's WAYLAND_DISPLAY, XDG_RUNTIME_DIR or session D-Bus address. Without those, kwingrab can't find KWin, and every encoder test fails after it because there is no display to test against. In the terminal it works because your shell has those variables.

graphical-session.target also only exists in the user manager, so After=/WantedBy=graphical-session.target in a system unit never does what you want.

The fix is to run Sunshine as a user service. The…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lyingriotman
Comment options

Answer selected by lyingriotman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants