[Pkg-xfce-devel] Bug#732623: Bug#729576: duplicate of bug #726763

Pascal Dormeau pdormeau at free.fr
Tue Dec 24 15:41:41 UTC 2013


Message resent due to delivery failure

Hi Vincent,

On Tue, 24 Dec 2013 02:01:21 +0100
Vincent Lefevre <vincent at vinc17.net> wrote:
> 
> I'm wondering whether there is a race condition, making differences
> between machines.
 
>     if (!lightdm_get_can_suspend ())
>         gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (builder,
> "suspend_menuitem"))); if (!lightdm_get_can_hibernate ())
>         gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (builder,
> "hibernate_menuitem"))); if (!lightdm_get_can_restart ())
>         gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (builder,
> "restart_menuitem"))); if (!lightdm_get_can_shutdown ())
>         gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (builder,
> "shutdown_menuitem")));

To exclude a possible race conditions, I re-built lightdm-gtk-greeter
changing the order above, but the problem remains the same with only
the suspend and the shutdown buttons showing.

Then I had a look
at /usr/share/polkit-1/actions/org.freedesktop.login1.policy

reboot and shutdown (respectively suspend and hibernate) permissions
differ inside the "multiple-sessions" stanza.
It is allow_active "yes" for shutdown (respectively suspend) whereas
allow_active "auth_admin_keep" for reboot (respectively hibernate).

Forcing allow_active to "yes" for reboot and hibernate in the
multiple-sessions stanza allows to get all 4 buttons.

But I cannot explain the multiple-session thing, normally
there is only one session (lightdm) if no one else is logged in.

Regards
Pascal Dormeau



More information about the Pkg-xfce-devel mailing list