The use of this flatpak was cumbersome but since the official didn't work for me I used this. The proble was that i had to manually run this sudo -i PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print$3}') \ flatpak run dev.lizardbyte.app.Sunshine
with an opened terminal so i can use it.
I have a clean proposal to this:
Install pkexec
Make a script, example:
!/bin/sh
PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print $3}') flatpak run dev.lizardbyte.app.Sunshine
, place it somewhere and make it executable
change the desktop entry's Exec Exec=pkexec /path/to/sunshine-wrapper.sh
I don't think this is a great solution but if we make all these steps into a single script file the experience will be far better.
this is an example sh file that works on debian:
gist file
The use of this flatpak was cumbersome but since the official didn't work for me I used this. The proble was that i had to manually run this
sudo -i PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print$3}') \ flatpak run dev.lizardbyte.app.Sunshine
with an opened terminal so i can use it.I have a clean proposal to this:
!/bin/sh
PULSE_SERVER=unix:$(pactl info | awk '/Server String/{print $3}') flatpak run dev.lizardbyte.app.Sunshine
, place it somewhere and make it executable
Exec=pkexec /path/to/sunshine-wrapper.sh
I don't think this is a great solution but if we make all these steps into a single script file the experience will be far better.
this is an example sh file that works on debian: gist file