]> code.delx.au - monosys/blob - etc/polkit-1/rules.d/99-blueman.rules
blueman polkit fix
[monosys] / etc / polkit-1 / rules.d / 99-blueman.rules
1 /* Allow users in sudo group to use blueman feature requiring root without authentication */
2 polkit.addRule(function(action, subject) {
3 if ((action.id == "org.blueman.network.setup" ||
4 action.id == "org.blueman.dhcp.client" ||
5 action.id == "org.blueman.rfkill.setstate" ||
6 action.id == "org.blueman.pppd.pppconnect") &&
7 subject.isInGroup("sudo")) {
8 return polkit.Result.YES;
9 }
10 });