Unable to use "Run command as root"

  • From: "Erik P. Olsen" <epodata@xxxxxxxxx>
  • To: emelfm2@xxxxxxxxxxxxx
  • Date: Tue, 01 Jul 2014 22:35:38 +0200

Trying to run gedit as root produces following output:

>pkexec gedit  (3079)
error: XDG_RUNTIME_DIR not set in the environment.
Unable to init server: Could not connect: Connection refused

(gedit:3079): Gtk-WARNING **: cannot open display:
>pkexec gedit (3079) returned '1'

Am I missing something?

--
Erik


--
Users can unsubscribe from the list by sending email to 
emelfm2-request@xxxxxxxxxxxxx with 'unsubscribe' in the subject field or by 
logging into the web interface.

Other related posts: