From b47d394e19603afb389630f5e813dc3b672c3e90 Mon Sep 17 00:00:00 2001 From: tk1rk Date: Sat, 20 May 2023 05:01:29 +0200 Subject: [PATCH] Add 'etc/udev/rules.d/81-blueman.rules' --- etc/udev/rules.d/81-blueman.rules | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 etc/udev/rules.d/81-blueman.rules diff --git a/etc/udev/rules.d/81-blueman.rules b/etc/udev/rules.d/81-blueman.rules new file mode 100644 index 0000000..a3a1ddf --- /dev/null +++ b/etc/udev/rules.d/81-blueman.rules @@ -0,0 +1,8 @@ +polkit.addRule(function(action, subject) { + if (action.id == "org.blueman.rfkill.setstate" && subject.local && subject.active && subject.isInGroup("wheel")) { + return polkit.Result.YES; + } + if (action.id == "org.blueman.network.setup" && subject.local && subject.active && subject.isInGroup("wheel")) { + return polkit.Result.YES; + } +}); \ No newline at end of file