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

[Feature] PolKit agent #516

Open
Cu3PO42 opened this issue May 19, 2024 · 3 comments
Open

[Feature] PolKit agent #516

Cu3PO42 opened this issue May 19, 2024 · 3 comments

Comments

@Cu3PO42
Copy link
Contributor

Cu3PO42 commented May 19, 2024

Let me preface this by saying this is not a feature request in the sense that I'm asking you to please do this now, I just want to document the idea and possibly start a discussion.

What would you like to be added?

I'd like to propose adding a PolKit agent to your AGS config itself. I understand you currently bundle the agent used by prior versions of Gnome, but I do believe it should be possible to build a better-looking one that integrates with the rest of the aesthetic.

How will it help

Beyond a visual uplift, it should be possible to get handling of fingerprint authentication much more correct than it currently is in Gnome Polkit agent.

Extra info

I have code for the business logic of implementing a PolKit agent in AGS on hand that I'm happy to help integrate. As for the UI, I have some ideas, but nothing concrete. The agent of modern Gnome Shell looks fairly good:

Gnome Polkit Agent

I also like 1Password's authorization dialog:

image

Maybe something similar, where instead of the 1Password icon we add the icon of the distribution.

@end-4
Copy link
Owner

end-4 commented May 20, 2024

yeah it would be nice to have the polkit thing show up in a layershell since i want it to hog focus like in gnome
thanks for reminding me that it's now possible
but maybe after i make a lock screen

as for fingerprint authentication, my device doesn't have a reader so i can't test that

@b4shful
Copy link
Contributor

b4shful commented May 20, 2024

This would be super cool! There are quite a few instances where I've been on Workspace 3 or something and not noticed a polkit/keyring dialog as they always seem to go to Workspace 1 haha. Usually ends in me rage quitting a program thinking it's not working, and later when I go back to workspace 1 I see the dialog and I'm like "oh ffs there's the issue" lol

@Cu3PO42
Copy link
Contributor Author

Cu3PO42 commented May 25, 2024

You can probably work around some of these issues, with the agent showing up on the wrong workspace or force it to take focus with some configuration of your window manager. E.g. on Hyprland you could force it to pinned and stayfocused.

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

3 participants