GNOME Bugzilla – Bug 619389
Polkit subject struct exception
Last modified: 2010-05-27 15:34:44 UTC
Today I compiled and ran gnome-lirc-properties-0.5.0 on Arch Linux. I received the following exception: Traceback (most recent call last):
+ Trace 222055
gnome_lirc_properties.run(sys.argv[1:], datadir)
return ui.RemoteControlProperties(builder, datadir).run()
self.__setup_authorization()
granted = self.__auth.is_authorized()
action_id, {}, dbus.UInt32(0), '', timeout=600)
return self._proxy_method(*args, **keywords)
**keywords)
message, timeout)
I corrected the exception with the help of http://hal.freedesktop.org/docs/polkit/eggdbus-interface-org.freedesktop.PolicyKit1.Authority.html#eggdbus-struct-Subject and http://lists.freedesktop.org/archives/polkit-devel/2009-December/000284.html. I simply added ",'start-time':dbus.UInt64(0,variant_level=1)" as seen on the polkit-dev list to the polkit calls in is_authorized and obtain_authorization in gnome_lirc_properties/policykit.py to fix the error. I am using PolicyKit 0.96.
This is a regression in PolicyKit, see bug: https://bugs.freedesktop.org/show_bug.cgi?id=28228
Doesn't look like David wants to fix PolicyKit.
commit c3a6e62af251da0d38308612818a0811ffd04565 Author: Bastien Nocera <hadess@hadess.net> Date: Thu May 27 16:01:33 2010 +0100 Fix traceback on start with new PolicyKit From PolicyKit 0.95, the "start-time" portion of a unix-process became necessary, as PolicyKit checks for its presence when validating for arguments. We now pass a start-time of '0' so that gnome-lirc-properties doesn't traceback with a remote error, and the daemon checks for the start-time in /proc https://bugzilla.gnome.org/show_bug.cgi?id=619389 Work-around: https://bugs.freedesktop.org/show_bug.cgi?id=28228