All of the sudden gksu stopped working for me:
~$ gksu gparted
(gpartedbin:24252): Gtk-WARNING **: cannot open display: :0
The same happens with gparted-pkexec
:
~$ gparted-pkexec
No protocol specified
(gpartedbin:25454): Gtk-WARNING **: cannot open display: :0
What could possibly be causing this?
I am not running this through SSH or VNC. This is localhost in a normal terminal window.
gksu
to run GParted.gparted
uses polkit to get elevated privileges. – muru Apr 26 '15 at 16:59gparted
withoutgksu
I getRoot privileges are required for running gparted.
– d_inevitable Apr 26 '15 at 17:17gparted-pkexec
(withoutgksu
) orgksu gpartedbin
. – muru Apr 26 '15 at 17:39gksu gedit
. I have already formatted my disk through the command line. So it is not specifically gparted that I am concerned about. – d_inevitable Apr 26 '15 at 17:42echo "$DISPLAY"
? – TheSchwa Apr 26 '15 at 19:22$DISPLAY
is:0
– d_inevitable Apr 26 '15 at 21:35