1
0
Fork 0
mirror of synced 2024-11-22 10:05:37 -05:00

fix polkit rules

This commit is contained in:
Shrinivas Vishnu Kumbhar 2021-04-05 17:50:23 +05:30
parent 62fad998fd
commit 31bd9f0e44
2 changed files with 10 additions and 8 deletions

View file

@ -2,7 +2,7 @@
# Maintainer: Librewish <librewish@gmail.com> # Maintainer: Librewish <librewish@gmail.com>
pkgname=garuda-common-settings pkgname=garuda-common-settings
pkgver=1.1.3 pkgver=1.2.1
pkgrel=1 pkgrel=1
arch=('any') arch=('any')
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname" url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"

View file

@ -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) { polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.freedesktop.udisks2.") == 0 && if (action.id.indexOf("org.freedesktop.udisks2.") == 0 &&
subject.isInGroup("wheel")) subject.isInGroup("wheel"))
@ -93,3 +86,12 @@ polkit.addRule(function(action, subject) {
return polkit.Result.YES; 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;
}
});