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

make garuda asistant passwordless

This commit is contained in:
librewish 2021-11-03 11:31:55 +05:30
parent f122c5aff7
commit dcaa1d32a3
3 changed files with 11 additions and 3 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=2.2.0 pkgver=2.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,3 +1,3 @@
# Hpet permissions # Hpet permissions
KERNEL=="rtc0", GROUP="audio" KERNEL=="rtc0", GROUP="realtime"
KERNEL=="hpet", GROUP="audio" KERNEL=="hpet", GROUP="realtime"

View file

@ -95,3 +95,11 @@ polkit.addRule(function(action, subject) {
return polkit.Result.YES; return polkit.Result.YES;
} }
}); });
polkit.addRule(function(action, subject) {
if ((action.id == "org.garuda.garuda-assistant.pkexec.policy.run") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;
}
});