Repository navigation
Conversation
The PolkitDetails received with each request were dropped by the listener. This change passes them as a string map and exposes them as AuthFlow.details. It copies every detail, including polkit.caller-pid and polkit.subject-pid, to Quickshell, which are our interest here.
Author
|
Closing as a duplicate of #1570, which was opened first and makes the same change. I missed it because I had searched the issues, not the pull requests. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
The PolkitDetails received with each request were dropped by the listener. This change pass them as a string map and expose them as AuthFlow.details. It copies every detail including polkit.caller-pid and polkit.subject-pid to Quickshell, which are our interest here.
Closes #1578
Details and descisions
Polkit puts the caller's and subject's process IDs there, so a shell can tell which process asked without guessing from the process list. New automated test for the conversion, and one real
pkexecrequest where the two PIDs matched the real processes.Open concerns
The polkit service had no tests before. This adds the first one. Wanted here, or should it go?
Participation
I use this via Omarchy and I want to know which process asked from the dialog. I'll follow up on the comments. the change was written with Claude and reviewed with it. Looking forward.