GNOME Bugzilla – Bug 674741
gdm-fallback.session: shutdown / restart don't work without ConsoleKit
Last modified: 2012-04-30 19:39:25 UTC
Created attachment 212724 [details] [review] fallback greeter: shutdown computer via gnome-session Without ConsoleKit installed, the restart and shutdown menu items in the classic (gdm-fallback session) GDM greeter don't work. Nothing happens if you try them. Each attempted restart or shutdown logs to /var/log/messages a line: gdm-simple-greeter[18870]: CRITICAL: dbus_g_error_get_name: assertion `error->code == DBUS_GERROR_REMOTE_EXCEPTION' failed The restart / shutdown code in gui/simple-greeter/gdm-greeter-panel.c appears to just call the Restart or Stop ConsoleKit dbus method - there's no check if ConsoleKit is running, nor if gdm was built with ConsoleKit support, nor anything to shutdown some other way. I have attached a patch which removes the Restart menu item and makes the Shutdown item open the shutdown dialog (from gnome-session). It was based on what gnome-panel does.
Created attachment 212761 [details] [review] fallback greeter: use org.freedesktop.login1 to shutdown Alternative patch, the menu remains the same, not tested yet.
great, thanks, will look soon.
I have now tried rebooting with the second patch - it did work, although there was a pause for a minute or two between gdm disappearing and my computer rebooting.
Thanks pushed!