Message resent due to delivery failure Hi Vincent,
On Tue, 24 Dec 2013 02:01:21 +0100 Vincent Lefevre <vinc...@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 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org