Custom polkit rule stopped working

polkit

#1

I have a custom polkit rule that worked for the last couple of months, after the 5/5/2018 testing update it stopped working. Now it asks me every time for authentication.
How can I fix/debug this?

/etc/polkit-1/rules.d/49-ltwheelconf_nopass_filip.rules

/* Allow filip to run ltwheelconf without passwd */
polkit.addRule(function(action, subject)
{
    if (action.id == "org.manjaro.pkexec.ltwheelconf" &&
        subject.isInGroup("filip"))
    {
        return polkit.Result.YES;
    }
});

/usr/share/polkit-1/actions/org.manjaro.pkexec.ltwheelconf.policy

<?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.manjaro.pkexec.ltwheelconf">

    <message>Authentication is required to run the Logitech Wheel Configuration</message>

    <icon_name>ltwheelconf</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/ltwheelconf</annotate>

    <annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>

  </action>



</policyconfig>

[Stable Update] 2018-05-07 - Kernels, Mesa, Glibc, PHP, Nvidia, Plasma5, Firefox
#2

Fixed by removing those lines, wiki post at the end


#3

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.