sherlock2
June 2nd, 2014, 06:45 PM
After upgrading from Ubuntu 11.10 to 12.04 LTS, I keep getting the following error when trying to open graphic applications with root privileges (sudo).
eg.: executing "sudo gedit" I get "cannot open display" after "Autolaunch error: X11 initialization failed"
The following happens under Gnome classic (no effects)
$ sudo gedit
** (gedit:18400): WARNING **: Riga di comando "dbus-launch --autolaunch=687c94355e5f99d1f9b772630000000c --binary-syntax --close-stderr" uscita con stato di uscita 1 non-zero: Autolaunch error: X11 initialization failed.\n
Impossibile aprire il display:
Eseguire "gedit --help" per visualizzare un elenco completo delle opzioni disponibili a riga di comando.
echo $DISPLAY prints :0.0
if I give sudo -i and then echo $DISPLAY, nothing is returned.
What should I check?
eg.: executing "sudo gedit" I get "cannot open display" after "Autolaunch error: X11 initialization failed"
The following happens under Gnome classic (no effects)
$ sudo gedit
** (gedit:18400): WARNING **: Riga di comando "dbus-launch --autolaunch=687c94355e5f99d1f9b772630000000c --binary-syntax --close-stderr" uscita con stato di uscita 1 non-zero: Autolaunch error: X11 initialization failed.\n
Impossibile aprire il display:
Eseguire "gedit --help" per visualizzare un elenco completo delle opzioni disponibili a riga di comando.
echo $DISPLAY prints :0.0
if I give sudo -i and then echo $DISPLAY, nothing is returned.
What should I check?