From fc78f5a4e0b6649a2f59c4299c60ff8e02ddbca6 Mon Sep 17 00:00:00 2001 From: Caveat <59033732+caveat-makes-software@users.noreply.github.com> Date: Sat, 19 Oct 2024 02:48:14 +0200 Subject: [PATCH] docs: improve flatpak start commands (#3264) --- docs/getting_started.md | 2 +- .../linux/flatpak/dev.lizardbyte.app.Sunshine.metainfo.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/getting_started.md b/docs/getting_started.md index 02de66e3882..4b0533ee0b6 100644 --- a/docs/getting_started.md +++ b/docs/getting_started.md @@ -224,7 +224,7 @@ flatpak run dev.lizardbyte.app.Sunshine ##### Run with KMS capture (Wayland & X11) ```bash -sudo -i PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print$3}') flatpak run dev.lizardbyte.app.Sunshine +sudo -i PULSE_SERVER=unix:/run/user/$(id -u $whoami)/pulse/native flatpak run dev.lizardbyte.app.Sunshine ``` ##### Uninstall diff --git a/packaging/linux/flatpak/dev.lizardbyte.app.Sunshine.metainfo.xml b/packaging/linux/flatpak/dev.lizardbyte.app.Sunshine.metainfo.xml index 7b4f1f18a86..43c4cbdfe32 100644 --- a/packaging/linux/flatpak/dev.lizardbyte.app.Sunshine.metainfo.xml +++ b/packaging/linux/flatpak/dev.lizardbyte.app.Sunshine.metainfo.xml @@ -32,7 +32,7 @@
flatpak run --command=additional-install.sh @PROJECT_FQDN@
NOTE: Sunshine uses a self-signed certificate. The web browser will report it as not secure, but it is safe.
NOTE: KMS Grab (Optional)
-sudo -i PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print$3}') flatpak run @PROJECT_FQDN@
+sudo -i PULSE_SERVER=unix:/run/user/$(id -u $whoami)/pulse/native flatpak run @PROJECT_FQDN@