I provided to open up text documents through sublime, and also for Read-just papers, I supplied to do :superform sublime. But currently just all of a sudden the superform sublime command also gives the adhering to error :

(sublime:3931): Gtk-WARNING **: cannot open up display:while sublime command is functioning fine. I tried the very same through gmodify, and the exact same point taken place, via the error with gedit being presented :

error: XDG_RUNTIME_DIR not collection in the atmosphere.(gedit:3933): Gtk-WARNING **: cannot open up display: I set up gtk, and tried gksucarry out, still got the same error!

I searched the internet and also uncovered these ways :

export DISPLAY=:0.0 : ssh username
hostname -Y

None of the over operated.

You are watching: Xdg_runtime_dir not set in the environment

What worked out for me was :

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY sublimeFrom below : https://askubuntu.com/questions/456689/error-xdg-runtime-dir-not-set-in-the-environment-when-attempting-to-run-naut

I desire to recognize why precisely am I obtaining this error, that also suddenly! Also, I desire to acquire ago to the superform sublime version, since it is straightforward to remember. How have the right to I solve that?

Also, the current alters I did to the mechanism were :

Installed gksu(for gksudo)

Aid would be highly appreciated!


*

*

Any mechanism updays lately...This sounds connected. Maybe this

If you have something that works, you have the right to always just put it in a shell manuscript and store that manuscript in your path.In Debian you can create a "bin" catalog in your residence folder and also that will automatically be had in your path; I"m not specific if it functions on Ubuntu, however opportunities are good.

So in ~/bin develop "sublime-root.sh" and also put your pkexec stuff in there?


*

Thanks for contributing an answer to Super User!

Please be sure to answer the question. Provide details and also share your research!

But avoid

Asking for help, clarification, or responding to other answers.Making statements based upon opinion; earlier them up with referrals or personal experience.

See more: Sad Movie Quotes &Bull; “ Dear God Make Me A Bird So I Can Fly Far Far Away

To learn even more, check out our tips on creating great answers.


Message Your Answer Discard

By clicking “Blog post Your Answer”, you agree to our terms of business, privacy policy and also cookie plan


Not the answer you're looking for? Browse various other concerns tagged sudo sublime-text-2 ubuntu-14.04 gtk gksuexecute or ask your very own question.


How do I solve a "cannot open up display" error when opening an X program after ssh'ing through X11 forwarding enabled?
How do I solve a "cannot open up display" error as soon as opening an X regimen after ssh'ing via X11 forwarding enabled?
sudo: reliable uid is not 0, is /usr/bin/superform on a file system via the 'nosuid' option collection or an NFS file mechanism without root privileges?
*

website style / logo design © 2021 Stack Exadjust Inc; user contributions licensed under cc by-sa. rev2021.9.14.40215


Super User functions best with JavaScript enabled
*

Your privacy

By clicking “Accept all cookies”, you agree Stack Exreadjust deserve to save cookies on your gadget and also disclose indevelopment in accordance via our Cookie Policy.