Skip to content

Conversation

@jfhbrook
Copy link
Owner

@jfhbrook jfhbrook commented Feb 9, 2025

Thanks to a commenter on my fedora board question, I think I've found the issue for #32!

It turns out that polkit was a red herring - the issue is that, when using the sdbus API, you need to mark the methods as being "unprivileged" with a flag!

I'm not sure how to best test this - I think the easiest thing might be to do a release and see? I'd also like to clean up the documentation, and get rid of the polkit stuff. But I'm confident that this is the answer!

@jfhbrook jfhbrook closed this Feb 9, 2025
@jfhbrook jfhbrook reopened this Feb 9, 2025
@jfhbrook jfhbrook changed the title dbus methods marked as unprivileged Mark dbus methods as unprivileged Feb 9, 2025
@jfhbrook
Copy link
Owner Author

jfhbrook commented Feb 9, 2025

I can't run plusdeckd as sudo manually, I'm not sure why. I suspect it's because of a systemd restriction? Either way - I feel confident about this fix, and intend to test by releasing. But COPR builds for Python packages are still failing - I won't be able to test this until it's fixed.

Still, I'm going to merge this as-is, and sort this out later.

@jfhbrook jfhbrook merged commit 37155a5 into main Feb 9, 2025
3 checks passed
@jfhbrook jfhbrook deleted the unprivileged-flag branch February 9, 2025 20:20
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

Successfully merging this pull request may close these issues.

2 participants