Results 1 to 2 of 2

Thread: I can not run 'sudo gedit' in 13.1 gnome evironment

  1. #1

    Default I can not run 'sudo gedit' in 13.1 gnome evironment

    Code:
    ~> sudo gedit 
    root's password:
    error: XDG_RUNTIME_DIR not set in the environment.
    Unable to init server
    
    (gedit:4375): Gtk-WARNING **: cannot open display:
    How to do with it? thanks

  2. #2
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    20,714
    Blog Entries
    1

    Default Re: I can not run 'sudo gedit' in 13.1 gnome evironment

    Quote Originally Posted by waterloo2005 View Post
    Code:
    ~> sudo gedit 
    root's password:
    error: XDG_RUNTIME_DIR not set in the environment.
    Unable to init server
    
    (gedit:4375): Gtk-WARNING **: cannot open display:
    How to do with it? thanks
    The following will work
    Code:
    gnomesu gedit
    or
    Code:
    xdg-su -c gedit

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •