Description
Is there an existing issue for this?
- I have searched the existing issues
Is your issue described in the documentation?
- I have read the documentation
Is your issue present in the latest beta/pre-release?
This issue is present in the latest pre-release
Describe the Bug
The startup call (sudo -i PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print$3}') flatpak run dev.lizardbyte.app.Sunshine
) that is documented in several places for running Sunshine (Flatpak) on Linux is incorrect.
If the Linux system is set to a language other than English, this no longer works, as pactl info
returns the information block localized in this case and this causes the awk match for "Server String" to not be found. This prevents audio from working in Sunshine subsequently.
I have searched several places, the incorrect startup call is documented here:
https://docs.lizardbyte.dev/projects/sunshine/en/master/md_docs_2getting__started.html
https://flathub.org/apps/dev.lizardbyte.app.Sunshine
Suggestion to correct this:
sudo -i PULSE_SERVER=unix:/run/user/$(id -u $whoami)/pulse/native flatpak run dev.lizardbyte.sunshine
This startup call should work in all cases, regardless of what the localization setting is. However, this assumes that the pulse server is always available under /run/user/{id}/pulse/native. On Fedora (which I am using) this is the case, but I am not 100% sure if this is the case for other Linux distributions as well.
Expected Behavior
The startup call should be corrected an all relevant places of the documentation.
Additional Context
No response
Host Operating System
Linux
Operating System Version
Fedora 40
Architecture
64 bit
Sunshine commit or version
documentation
Package
Linux - flatpak
GPU Type
Nvidia
GPU Model
not relevant
GPU Driver/Mesa Version
not relevant
Capture Method
KMX (Linux)
Config
not relevant
Apps
No response
Relevant log output
not relevant