fix: Remove SteamVR polkit waiting more proper solution

This commit is contained in:
Kyle Gospodnetich 2023-07-22 00:17:14 -07:00
parent 82390e3d1b
commit b61a2c48b8
2 changed files with 0 additions and 26 deletions

View File

@ -1,10 +0,0 @@
/* Allow members of the wheel group to execute the defined actions
* without password authentication, similar to "sudo NOPASSWD:"
*/
polkit.addRule(function(action, subject) {
if ((action.id == "org.chimeraos.steamvr.pkexec") &&
subject.isInGroup("wheel"))
{
return polkit.Result.YES;
}
});

View File

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policyconfig PUBLIC
"-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
"http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>
<action id="org.chimeraos.steamvr.pkexec">
<message>Authentication is required to change steamvr compositor capabilities</message>
<defaults>
<allow_any>no</allow_any>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
</defaults>
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/setcap</annotate>
<annotate key="org.freedesktop.policykit.exec.argv1">CAP_SYS_NICE=eip</annotate>
<annotate key="org.freedesktop.policykit.exec.argv2">/home/gamer/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcompositor-launcher</annotate>
</action>
</policyconfig>