title: XDG_RUNTIME_DIR not set in the environment
body: <p>I can use gedit open file  in terminal,but when I close the terminal ,I  gedit the file ,then show :error: XDG_RUNTIME_DIR not set in the environment.</p>
  
  <pre><code>(gedit:10183): Gtk-WARNING **: cannot open display: 
  hadoop@hadoop1:~$
  </code></pre>