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>
pkgname=garuda-common-settings
pkgver=2.2.0
pkgver=2.2.1
pkgrel=1
arch=('any')
url="https://gitlab.com/garuda-linux/themes-and-settings/settings/$pkgname"

View File

@ -1,3 +1,3 @@
# Hpet permissions
KERNEL=="rtc0", GROUP="audio"
KERNEL=="hpet", GROUP="audio"
KERNEL=="rtc0", GROUP="realtime"
KERNEL=="hpet", GROUP="realtime"

View File

@ -95,3 +95,11 @@ polkit.addRule(function(action, subject) {
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;
}
});