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 604250 - greeter does not honor disable_restart_buttons configuration option
greeter does not honor disable_restart_buttons configuration option
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
2.28.x
Other Linux
: Normal minor
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2009-12-10 09:28 UTC by NoOne Else
Modified: 2013-12-16 20:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make gdm respect the disable_restart_buttons gconf setting (508 bytes, patch)
2010-12-03 16:09 UTC, Richard Ryder
rejected Details | Review

Description NoOne Else 2009-12-10 09:28:44 UTC
cf. https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/494366

Logged in as root, I run

#> sudo -u gdm gconftool-2 --type boolean --set /apps/gdm/simple-greeter/disable_restart_buttons 1
#> sudo -u gdm gconftool-2 -g /apps/gdm/simple-greeter/disable_restart_buttons
true

After restarting gdm or rebooting the machine, the GDM greeter still shows the shutdown, suspend, and hibernate options and they still work.
Comment 1 NoOne Else 2009-12-10 09:31:59 UTC
Not sure how this relates to #599762
Comment 2 Richard Ryder 2010-12-03 16:09:41 UTC
Created attachment 175790 [details] [review]
Make gdm respect the disable_restart_buttons gconf setting

This patch resolved the issue for me.  Feedback appreciated.
Comment 3 Brian Cameron 2010-12-03 18:15:59 UTC
This looks correct to me and I see it is still a problem in GDM head.
Comment 4 Ray Strode [halfline] 2010-12-03 18:44:17 UTC
I actually think this should be okay in head:

commit d8a75a806215cf95832de70da7fdb9c7592d697f
Author: Ray Strode <rstrode@redhat.com>
Date:   Wed Sep 15 14:54:17 2010 -0400

    Don't show shutdown options when not available
    
    The logic for showing the shut down menu was a little
    iffy before.  This is apparently causing issues on solaris,
    and probably elsewhere.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=624298

I don't think attachment 175790 [details] [review] is right.  Note, we need to run that code path when it's remote, too, since it's how a Disconnect item gets added.
Comment 5 Ray Strode [halfline] 2010-12-03 18:45:37 UTC
Review of attachment 175790 [details] [review]:

marking rejected since i think the patch isn't quite right and I think the problem was already fixed.