installer: fixup polkit permissions

This commit is contained in:
alfrix 2024-02-29 14:55:45 -03:00
parent 6ad9b13c42
commit 0570706bbe
2 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,7 @@ this line may appear in KlipperScreen.log:
[wifi_nm.py:rescan()] [...] NetworkManager.wifi.scan request failed: not authorized
```
if version of KlipperScreen installed was previous than v0.3.8, then re-run the installer and reboot
if version of KlipperScreen installed was previous than v0.3.9, then re-run the installer and reboot
??? Alternative workaround for network-manager

View File

@ -196,8 +196,7 @@ polkit.addRule(function(action, subject) {
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
action.id == "org.freedesktop.login1.halt" ||
action.id == "org.freedesktop.login1.halt-multiple-sessions" ||
action.id == "org.freedesktop.NetworkManager.*" ||
action.id.startsWith("org.freedesktop.packagekit.")) &&
action.id.startsWith("org.freedesktop.NetworkManager.")) &&
subject.user == "$USER") {
// Only allow processes with the "klipperscreen" supplementary group
// access