export XAUTHORITY= / var/ run/ lightdm/ root/ : 0 export DISPLAY= : 0. Please tell me if this is safe. When you run software as another user you' re in fact starting the new minimal and isolated environment that doesn' t carry on some " excessive" variables ( among others variables responsible for injecting libraries or setting. But, what if that' s not the problem and the DISPLAY is set correctly in sudo? XDG_ RUNTIME_ DIR is an environment variable set in your X Windows context, so that programs can find things. You ( neo ) have. The system returns this message when I enter gedit filename. I just installed Ubuntu over Win 10 with Bash then loaded gcc, gedit and build- essential. I am a total beginner, as you may guess. Help appreciated.
gedit error: XDG_ RUNTIME_ DIR not set in the environment. ( gedit: 3994) : Gtk- WARNING. Set the display in bash with the following:. Here is an attempt to work around the lack of a functioning X server on Windows. I have no way to try this as I don' t have Windows 10. If you don' t get any error messages in the steps above, you' re good. Create a new policy rule in / usr/ share/ polkit- 1/ actions/ sudo nano / usr/ share/ polkit - 1/ actions/ wireshark. and add the lines below: > ~ /. In Debian you can create a ' bin' directory in your home folder and that will automatically be included in your path; I' m not certain if it works on Ubuntu, but chances are good. So in ~ / bin create ' sublime- root. sh' and put your.