-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Polkit policy file possibly copied to wrong location #10523
Comments
Nothing like Linux distros to be totally out of standard |
If you build to |
Hmmmm perhaps we are out of standard: https://wiki.archlinux.org/title/Polkit#Actions |
All I can see from that link is that PolKit only looks in
It doesn't make sense to me to put this in @HexF , your thoughts? edit: From the actual FHS spec:
(See also the spec page for |
For me files are located under |
AppImage does not install the policy files, you will need to install them yourself. KeePassXC in general cannot install those files since root is required. |
Understood. I have added org.keepassxc.KeePassXC.policy.in manually now.
|
You need to replace @APP_ICON_NAME@ in |
I have replaced it with the icon |
Polkit expects action files (like those we install with KeepassXC) at |
In other words, since That said, this could still be automated in the build script. When building to Finally, it is common practice in Linux for applications to search a cascading set of standard folders such as |
I'm not entirely sure PolKit is breaking the FHS, in the case I discovered this PolKit is a system app and so should be in That said it looks like someone has already proposed PolKit support a cascading set of folders: polkit-org/polkit#419 Creating a symlink automatically for self-builders, or allowing the location to be manually overridden as a CMake variable would be useful, I think. |
I can definitely get behind a CMake variable, however in the end this is still an upstream polkit issue and anything we do is merely a workaround. If I get the time I may take a crack at fixing this in upstream Polkit. |
It's provided by KeePassXC, for use with KeePassXC, and defines an action that is only relevant to KeePassXC. So I'd argue that it's KepassXC data. PolKit is the consumer. But anyway, that's just nitpicking on my part. PS, I wouldn't say that PolKit is breaking the FHS, it's just not looking in all the relevant places that are defined by the FHS. |
Overview
The polkit policy file (
share/linux/org.keepassxc.KeePassXC.policy.in
) is copied to${CMAKE_INSTALL_DATADIR}/polkit-1/actions
Which may not be a folder checked by polkit
Steps to Reproduce
Expected Behavior
Polkit policy is copied to /usr/share/polkit-1/actions
Actual Behavior
Polkit policy is copied to /usr/local/share/polkit-1/actions
Context
At least on Ubuntu it seems that only /usr/share/polkit-1/actions is checked by Polkit, so /usr/local/share/polkit-1/actions is ignored.
I do not know if this is consistent across every distro or if there's a way to ask polkit for the location
KeePassXC - 2.8.0-snapshot
Revision: 2421b70
Operating System: Linux
Desktop Env: KDE
Windowing System: X11
The text was updated successfully, but these errors were encountered: