GNOME Bugzilla – Bug 341312
Suspending doesn't work in gdm
Last modified: 2006-05-11 07:05:20 UTC
Please describe the problem: When adding the SuspendCommand option in gdm and setting SystemMenu=true gdm does display a hibernate option but never executes it. When enabling debug in gdm.conf the syslog says: "Request for configuration key greeter/SystemMenu=true, but not type STRING" Steps to reproduce: 1. in gdm.conf set: SystemMenu=true, SuspendCommand=/sbin/shutdown (just something valid) and Enable=true in the Debug section 2. (re)start gdm 3. click on the displayed button for suspending Actual results: The command giben by the SuspendCommand option is not executed and a syslog entry is created saying: "Request for configuration key greeter/SystemMenu=true, but not type STRING" Expected results: The command giben by the SuspendCommand option should be executed. Does this happen every time? yep Other information: I did a search and I think the error is in gdm.c:2300 in function gdm_handle_message. There is a statement: gdm_get_value_string ( GDM_KEY_SYSTEM_MENUE) that really should be: gdm_get_value_bool ( GDM_KEY_SYSTEM_MENUE) or something similar as it is actually a boolean option. Trying to read it as a string returns NULL and so suspend_machine isn't executed.
Thanks, fixed in CVS head and 2.14 branch.