10 lines
540 B
Plaintext
10 lines
540 B
Plaintext
// Allow local Geminux desktop users (wheel/netdev/plugdev/lp) to control NetworkManager, ModemManager, and BlueZ without a Polkit agent.
|
|||
|
|
polkit.addRule(function(action, subject) {
|
||
|
|
if ((action.id.indexOf("org.freedesktop.NetworkManager.") === 0 ||
|
||
|
|
action.id.indexOf("org.freedesktop.ModemManager1.") === 0 ||
|
||
|
|
action.id.indexOf("org.bluez.") === 0) &&
|
||
|
|
(subject.isInGroup("wheel") || subject.isInGroup("netdev") ||
|
||
|
|
subject.isInGroup("plugdev") || subject.isInGroup("lp"))) {
|
||
|
|
return polkit.Result.YES;
|
||
|
|
}
|
||
|
|
});
|