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

Inform users when a permission is required for a demo #915

Open
sonnyp opened this issue Mar 23, 2024 · 2 comments
Open

Inform users when a permission is required for a demo #915

sonnyp opened this issue Mar 23, 2024 · 2 comments

Comments

@sonnyp
Copy link
Contributor

sonnyp commented Mar 23, 2024

Currently, Workbench is considered as "probably safe" by Flathub and GNOME Software.

The reason it is not considered "Safe" is because we require network and audio permission (via --socket=pulseaudio and --share=network. Those are not strictly required to use Workbench and are only needed for a handful of demos. In addition, we would also like to add a permission for gamepads workbenchdev/demos#88

Eventually there will be portals for all of these things but until then we need static permissions.

Let's

  1. remove those permissions so that Workbench is considered safe
  2. add a mechanism for demos to advertise which permissions they need - maybe flatpak-finish-args: ["--socket=fallback-x11"] in main.json
  3. when a needed permission is not enabled, Workbench should show a dialog on "Run" to explain what this is about and how to enable the permission using flatpak overrides

Since overrides are permanent - it should be a one time thing only anyway.

@sonnyp
Copy link
Contributor Author

sonnyp commented Mar 23, 2024

@bragefuglseth would you be interested in proposing a copy / design for 3?

@bragefuglseth
Copy link
Contributor

bragefuglseth commented Mar 30, 2024

Hey, and sorry for the late response! I can have a shot at it if you can provide some textual content / an instruction set to be conveyed in the dialog. I'm not too knowledgeable on that stuff 😃

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