Slimbook-Team/slimbookbattery

polkit policy asks a password on Manjaro

Opened this issue · 1 comments

Describe the bug
when opening the app, we get a message box to ask a root password

To Reproduce
Open the app or change the config

Desktop (please complete the following information):

  • OS: Manjaro
  • Version: 22.0.0 Sikaris
  • Desktop Environment: cinamon

Expected behavior (Optional)
No password

Screenshots
(lazy, sorry)

Additional context
I have found the fix :
The issue is that polkit does not found /usr/bin/slimbookbattery-pkexec because it is on /usr/sbin on Manjaro.
So, to solve the issue, please check if slimbookbattery-pkexec is in /usr/bin or /usr/sbin (or run a "which slimbookbattery-pkexec"). Then update /usr/share/polkit-1/actions/com.ubuntu.pkexec.slimbookbattery.policy

00sapo commented

Thanks, you saved my day. I didn't notice that the polkit action had a different path than the real one.