flathub / dev.lizardbyte.app.Sunshine

https://flathub.org/apps/details/dev.lizardbyte.app.Sunshine
2 stars 4 forks source link

Possible solution for the opened terminal. #162

Open zachvlat opened 2 months ago

zachvlat commented 2 months ago

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:

  1. Install pkexec
  2. 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

  1. 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