Refresh method authorization

Marc Ferland marc.ferland at gmail.com
Wed Sep 29 14:27:05 PDT 2010


Hi,

I'm trying to configure my application so that it can call the
"Refresh" method defined in org.freedesktop.UPower.Device and I'm
getting a "Rejected send message" back.

I tried adding the following in
/usr/share/polkit-1/actions/org.freedesktop.upower.policy:

 <action id="org.freedesktop.upower.refresh">
    <description>Refresh the power source</description>
    <message>Authentication is required to refresh</message>
    <defaults>
      <allow_any>yes</allow_any>

    </defaults>
  </action>

but still no luck...

I'm able to do stuff like mounting and unmouting drives (they require
authentication too) but not refreshing the power source.

Regards,

Marc


More information about the devkit-devel mailing list