After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 341312 - Suspending doesn't work in gdm
Suspending doesn't work in gdm
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.14.x
Other All
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-10 19:24 UTC by Markus Henschel
Modified: 2006-05-11 07:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Markus Henschel 2006-05-10 19:24:15 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.
Comment 1 Brian Cameron 2006-05-11 07:05:20 UTC
Thanks, fixed in CVS head and 2.14 branch.