Slimbook-Team / slimbookbattery

Slimbook Battery 4
https://slimbook.es/en/tutoriales/aplicaciones-slimbook/398-slimbook-battery-3-application-for-optimize-battery-of-your-laptop
GNU General Public License v3.0
249 stars 18 forks source link

polkit policy asks a password on Manjaro #86

Open sangorys opened 2 years ago

sangorys commented 2 years ago

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):

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 1 year ago

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