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

Screenshot permission granting API #1093

Open
swick opened this issue Aug 30, 2023 · 2 comments
Open

Screenshot permission granting API #1093

swick opened this issue Aug 30, 2023 · 2 comments
Labels
need more info new api This requires adding API to an existing portal permissions Issues and feature requests related to permissions

Comments

@swick
Copy link
Contributor

swick commented Aug 30, 2023

Some applications like flameshot want to take screenshots when they get launched and don't have a surface, yet to avoid having UI in the way of whatever is supposed to get captured. This is a problem for the screenshot portal which might require the user to grant permission and can't associate this permission dialog with a surface.

It would be good if there was a way for the app to ask the user to grant permission to take screenshots without taking a screenshot. This permission dialog could be in a settings app or something more in the style of Android.

@GeorgesStavracas GeorgesStavracas added new api This requires adding API to an existing portal need more info permissions Issues and feature requests related to permissions labels Oct 3, 2023
@allanday
Copy link

I think this makes sense. It's certainly reasonable to expect a screenshot tool to be run once before you can start using it.

My main concern is what it might mean if we extend the same logic to other portals, and what might happen if an app needs multiple permissions. The experience of launching an app for the first time and being bombarded with permission dialogs is not fun.

@dynobo
Copy link

dynobo commented Oct 12, 2023

My main concern is what it might mean if we extend the same logic to other portals, and what might happen if an app needs multiple permissions. The experience of launching an app for the first time and being bombarded with permission dialogs is not fun.

That's true.

However, I personally do not see a big difference of being bombarded before or after the application window shows up.

On Android they handle this in a combined permission dialog, but I guess this is difficult without explicit permission management.

MacOS uses implicit management. How are thoses cases handled there? So far, I've only seen single-permission-dialogs there, and I never felt like being bombarded by many of them... Maybe this is not a common problem in practise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info new api This requires adding API to an existing portal permissions Issues and feature requests related to permissions
Projects
Status: Triaged
Development

No branches or pull requests

4 participants