12 lines
515 B
Plaintext
12 lines
515 B
Plaintext
// Allow users in sudo or netdev group to use blueman feature requiring root without authentication
|
|
polkit.addRule(function(action, subject) {
|
|
if ((action.id == "org.blueman.network.setup" ||
|
|
action.id == "org.blueman.dhcp.client" ||
|
|
action.id == "org.blueman.rfkill.setstate" ||
|
|
action.id == "org.blueman.pppd.pppconnect") &&
|
|
subject.local && subject.active &&
|
|
(subject.isInGroup("sudo") || subject.isInGroup("netdev"))) {
|
|
return polkit.Result.YES;
|
|
}
|
|
});
|