Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible solution for the opened terminal. #162

Open
zachvlat opened this issue Jun 24, 2024 · 12 comments
Open

Possible solution for the opened terminal. #162

zachvlat opened this issue Jun 24, 2024 · 12 comments

Comments

@zachvlat
Copy link

zachvlat commented Jun 24, 2024

KDE Debian 12 (wayland)

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

@ReenigneArcher
Copy link
Collaborator

but since the official didn't work for me I used this

What do you mean by this? That the upstream flatpak package didn't work or an upstream package like the deb didn't work? The upstream flatpak should be almost equivalent to this, although there are some minor differences in the packaging. I am working to bring them in full sync, so it would be good to have a better understanding of this statement.

@zachvlat
Copy link
Author

zachvlat commented Oct 2, 2024

but since the official didn't work for me I used this

What do you mean by this? That the upstream flatpak package didn't work or an upstream package like the deb didn't work? The upstream flatpak should be almost equivalent to this, although there are some minor differences in the packaging. I am working to bring them in full sync, so it would be good to have a better understanding of this statement.

That the upstream flatpak (stable not nightly) package didn't work. Also the audio doesn't work as the deb one (I did put the audio manually as the guide say). If there are extra permissions needed, they must be known.

@ReenigneArcher
Copy link
Collaborator

Okay, thanks for the info.

stable not nightly

Did you happen to test the nightly/beta version (or only the stable)? We're getting close to make a new stable release.

@zachvlat
Copy link
Author

zachvlat commented Oct 2, 2024

Okay, thanks for the info.

stable not nightly

Did you happen to test the nightly/beta version (or only the stable)? We're getting close to make a new stable release.

No I did not. I 'll install it in the next hours if you want.

@ReenigneArcher
Copy link
Collaborator

That would be nice. Just to get a double check if we're on the right path. Thank you!

@zachvlat
Copy link
Author

zachvlat commented Oct 2, 2024

That would be nice. Just to get a double check if we're on the right path. Thank you!

image

@ReenigneArcher
Copy link
Collaborator

@zachvlat how did you start sunshine?

@zachvlat
Copy link
Author

zachvlat commented Oct 2, 2024

I started as is. Like a normal user would do (I m not a normal user). This is the menu item and its arguments.

image

@ReenigneArcher
Copy link
Collaborator

@zachvlat
Copy link
Author

zachvlat commented Oct 2, 2024

this is not user friendly though... someone who 'll use the flathub store to install it will not see or use it. we have to find a way to seemlesly implement this. thats the exact reason why i use this script.

@ReenigneArcher
Copy link
Collaborator

There's two desktop files: https://github.com/LizardByte/Sunshine/tree/master/packaging/linux/flatpak

Is flatpak not exposing these to you?

@zachvlat
Copy link
Author

zachvlat commented Oct 2, 2024

No. Not at KDE at least. It has only one launcher that doenst work as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants