From 31bd9f0e44aa973e03b35e1bf3f4eb92d8fe59e5 Mon Sep 17 00:00:00 2001 From: Shrinivas Vishnu Kumbhar Date: Mon, 5 Apr 2021 17:50:23 +0530 Subject: [PATCH] fix polkit rules --- PKGBUILD | 2 +- etc/polkit-1/rules.d/99-garuda.rules | 16 +++++++++------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index f8f4e67..2486a32 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ # Maintainer: Librewish pkgname=garuda-common-settings -pkgver=1.1.3 +pkgver=1.2.1 pkgrel=1 arch=('any') url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" diff --git a/etc/polkit-1/rules.d/99-garuda.rules b/etc/polkit-1/rules.d/99-garuda.rules index 5c1600f..b42673b 100644 --- a/etc/polkit-1/rules.d/99-garuda.rules +++ b/etc/polkit-1/rules.d/99-garuda.rules @@ -1,10 +1,3 @@ -/* Allow members of the wheel group to execute the defined actions - * without password authentication, similar to "sudo NOPASSWD:" - */ - -// Allow udisks2 to mount devices without authentication -// for users in the "wheel" group. - polkit.addRule(function(action, subject) { if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && subject.isInGroup("wheel")) @@ -93,3 +86,12 @@ polkit.addRule(function(action, subject) { return polkit.Result.YES; } }); + +polkit.addRule(function(action, subject) { + if ((action.id == "in.teejeetech.pkexec.timeshift-gtk" || + action.id == "in.teejeetech.pkexec.timeshift") && + subject.isInGroup("wheel")) + { + return polkit.Result.YES; + } +});