feat(linux): add portal token setup script for headless systems#4935
feat(linux): add portal token setup script for headless systems#4935neatnoise wants to merge 1 commit intoLizardByte:masterfrom
Conversation
|
As this PR stands right now, this script will not be included in any Sunshine packages. Is that the intent? |
9658d6e to
f3ddce4
Compare
Hhm, maybe would be better to just have it in the docs for copy paste and use? It's to automate portal token generation for systems without physical monitor. I had the issues to generate it in this case and it will help to automate. |
|
Could we achieve the same from within Sunshine's src code and have a button in the UI or CLI arg to handle this instead of an external script? |
|
|
What do you think about installing it to like /usr/bin/sunshine-portal-setup and documenting in the docs? It requires the user's interaction unfortunately to connect using Moonlight to Sunshine instance on custom port (KMS), access for setcap etc |
|
@psyke83 tagging you in case you have some thoughts on how to handle this |
|
Having it as an optional script may be OK, I suppose? I also run a headless host, so I do need to run a similar script that I wrote for GNOME sessions. On KDE, it probably makes better sense to use the secondary permission system: If this script is added, the above should probably be documented for KDE users as an easier alternative. |




Description
On headless Linux systems using Wayland, the XDG portal
Startcall requires user confirmation via a monitor selection dialog. When Sunshine runs as a systemd service, there is no way to approve this popup without a physical display.This script automates the portal token setup:
Screenshot
Issues Fixed or Closed
Roadmap Issues
Type of Change
Checklist
AI Usage