This seems to be the problematic code, in /usr/bin/xfailsafedialog:
class FailSafeDialog:
def __init__(self): self.options = FailSafeOptions()
# Homage to glade gtk.window_set_default_icon_name("display-capplet")
header = _("Ubuntu is running in low-graphics mode")
msg = _("Your screen and graphics card could not be detected " "correctly. To use higher resolutions, visual effects "
"or multiple screens, you have to configure the display " "yourself.")
... dia.add_button(_("_Shut Down"), RESPONSE_SHUTDOWN)
...
elif res == RESPONSE_SHUTDOWN:
print "shutdown" os.system("/sbin/shutdown now")
Not sure why shutdown now is leaving the user at a prompt though. Anyone got an idea there?
xfailsafedialog is getting called via gksu:
/usr/bin/gksu -u root "/usr/bin/xfailsafedialog"
However come to think of it, I've never seen the root password prompt. Anyone got a better solution that causes a password to be prompted for?
Re-filing to displayconfig-gtk since the primary issue seems localized to its code in any case.
This seems to be the problematic code, in /usr/bin/ xfailsafedialog :
class FailSafeDialog:
self.options = FailSafeOptions()
gtk.window_ set_default_ icon_name( "display- capplet" )
"correctly. To use higher resolutions, visual effects "
"yourself. ")
dia.add_ button( _("_Shut Down"), RESPONSE_SHUTDOWN)
os. system( "/sbin/ shutdown now")
def __init__(self):
# Homage to glade
header = _("Ubuntu is running in low-graphics mode")
msg = _("Your screen and graphics card could not be detected "
"or multiple screens, you have to configure the display "
...
...
elif res == RESPONSE_SHUTDOWN:
print "shutdown"
Not sure why shutdown now is leaving the user at a prompt though. Anyone got an idea there?
xfailsafedialog is getting called via gksu:
/usr/bin/gksu -u root "/usr/bin/ xfailsafedialog "
However come to think of it, I've never seen the root password prompt. Anyone got a better solution that causes a password to be prompted for?
Re-filing to displayconfig-gtk since the primary issue seems localized to its code in any case.