Comment 9 for bug 133639

Revision history for this message
Daniel Hahler (blueyed) wrote : Re: [fixed] synaptic is asking root password and not user admin's

BUGabundo, this appears not to be the "real fix".

The problem is, that gksu gets confused by an existing "&".

It expects an HTML entity, when an ampersand gets used.

Try:
$ LANG=C gksu '&'

(gksu:31720): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error on line 3: Character ''' is not valid at the start of an entity name; the & character begins an entity; if this ampersand isn't supposed to be an entity, escape it as &

The following display the correct dialog, but fails when being executed:
gksu "sh -c 'echo 1 && echo 2'"

The Gtk-WARNING seems to be the cause/hint, why an inappropriate dialog gets used.