mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-27 21:35:24 +00:00
fix: Add hhd.steamos to polkit
This commit is contained in:
parent
e06eef7e0d
commit
b75492d22f
@ -7,7 +7,7 @@
|
||||
<vendor>Bazzite</vendor>
|
||||
<vendor_url>https://github.com/ublue-os/bazzite/</vendor_url>
|
||||
|
||||
<action id="org.bazzite.hhd.pkexec">
|
||||
<action id="org.bazzite.enable.hhd.pkexec">
|
||||
<description>Handheld Daemon is a project that aims to provide utilities for managing handheld devices</description>
|
||||
<icon_name>package-x-generic</icon_name>
|
||||
<defaults>
|
||||
@ -18,4 +18,15 @@
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/libexec/bazzite-enable-hhd</annotate>
|
||||
</action>
|
||||
|
||||
<action id="org.bazzite.hhd.steamos.pkexec">
|
||||
<description>Handheld Daemon is a project that aims to provide utilities for managing handheld devices</description>
|
||||
<icon_name>package-x-generic</icon_name>
|
||||
<defaults>
|
||||
<allow_any>yes</allow_any>
|
||||
<allow_inactive>yes</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/hhd.steamos</annotate>
|
||||
</action>
|
||||
|
||||
</policyconfig>
|
||||
|
@ -1,6 +1,6 @@
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.bazzite.hhd.pkexec" &&
|
||||
subject.isInGroup("wheel")) {
|
||||
if ((action.id == "org.bazzite.enable.hhd.pkexec" || action.id == "org.bazzite.hhd.steamos.pkexec") &&
|
||||
subject.isInGroup("wheel")) {
|
||||
return polkit.Result.YES;
|
||||
}
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user