Getting ready for PolicyKit 0.9

Michael Biebl mbiebl at gmail.com
Thu Jul 10 08:55:08 PDT 2008


2008/7/10 David Zeuthen <david at fubar.dk>:
> On Wed, 2008-07-09 at 21:57 +0200, Michael Biebl wrote:

>> On a completely different topic though:
>> The error message, when CK doesn't return an active session, is suboptimal.
>> Example: nm-connection-editor from NetworkManager 0.7 uses
>> PolicyKit(-gnome) to modify system wide settings. If I kill the
>> running console-kit-daemon instance (so ck-list-session returns
>> nothing for the currently active user), I get the following error
>> message (on the console) within nm-connection-editor:
>>
>> [WARN 21823] polkit-action.c:211:polkit_action_set_action_id():
>> polkit_action_validate_id (action_id)
>>  Not built with -rdynamic so unable to print a backtrace
>>
>> A normal user will not understand what the underlying problem is.
>>
>> Imho it would be much better, if polkit-gnome-manager would show an
>> understandable error dialog, that the current user is not listed as
>> being active, with the adive to check the ConsoleKit installation and
>> logout/login again.
>
> Yeah, in general error messages should be more friendly so patches
> welcome for that. However, it would be very weird if the CK daemon
> wasn't running (your example includes killing it - why would you want to
> do that?)

- What if CK/PK is installed when the user is already logged in
- Security updates of dbus or CK might make it necessary to restart
those services (and CK will quit as soon as dbus is restarted).

Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the polkit-devel mailing list