fix polkit rules
This commit is contained in:
parent
62fad998fd
commit
31bd9f0e44
2 changed files with 10 additions and 8 deletions
2
PKGBUILD
2
PKGBUILD
|
@ -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"
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in a new issue