From c7213e5e559c4a02f17f50ae8a5243931ed19fa1 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Wed, 17 Jun 2020 08:26:33 +0000 Subject: [PATCH] Corectrl shouldn't ask for the password anymore --- arch-config/etc/polkit-1/rules.d/90-corectrl.rules | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 arch-config/etc/polkit-1/rules.d/90-corectrl.rules diff --git a/arch-config/etc/polkit-1/rules.d/90-corectrl.rules b/arch-config/etc/polkit-1/rules.d/90-corectrl.rules new file mode 100644 index 00000000..5bff912c --- /dev/null +++ b/arch-config/etc/polkit-1/rules.d/90-corectrl.rules @@ -0,0 +1,9 @@ +polkit.addRule(function(action, subject) { + if ((action.id == "org.corectrl.helper.init" || + action.id == "org.corectrl.helperkiller.init") && + subject.local == true && + subject.active == true && + subject.isInGroup("marc")) { + return polkit.Result.YES; + } +});