From: James Bunton Date: Sun, 7 Oct 2018 22:29:51 +0000 (+1100) Subject: blueman polkit fix X-Git-Url: https://code.delx.au/monosys/commitdiff_plain/761e4bbe1b3f77bfe4dec555cbd9b5e0a9e655f0 blueman polkit fix --- diff --git a/etc/polkit-1/rules.d/99-blueman.rules b/etc/polkit-1/rules.d/99-blueman.rules new file mode 100644 index 0000000..79c7b6e --- /dev/null +++ b/etc/polkit-1/rules.d/99-blueman.rules @@ -0,0 +1,10 @@ +/* Allow users in sudo 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.isInGroup("sudo")) { + return polkit.Result.YES; + } +});