Comment 7 for bug 190370

Revision history for this message
Bryce Harrington (bryce) wrote :

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.