data/configs/blueman.rules
raw| 1 | /* Allow users in wheel 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("wheel")) { |
| 8 | return polkit.Result.YES; |
| 9 | } |
| 10 | }); |