Re: Getting rid of "Cannot open display" message [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Amit Dor-Shifer amitds-at-oversi.com |Lists| wrote:
I caught the program fairly quickly. For those with more complicated
setups, I'd suggest the following diagnostic process for identifying the
cause of the problem:

Or for faster results, try with temporary empty ~/.profile and
~/.bashrc. If that doesn't fail you'll know they are the culprit, then
try deleting lines in your original ~/.profile and ~/.bashrc using
bisection.

And to call the X clients safely once you've identified them:

if [ "$DISPLAY" != "" ] ; then
    # Call X clients
    setxkbmap yada yada yada
    xfoo --bar
fi

Beware, that if you're over a slow SSH connection, it could take time
for the clients to contact your DISPLAY even if it does work.

Especially, to start vi without it taking forever:
vi -X file.ext

Peter
--
Peter Valdemar Mørch
http://www.morch.com

[Index of Archives]     [Open SSH Unix Development]     [Fedora Users]     [Fedora Desktop]     [Yosemite Backpacking]     [KDE Users]     [Gnome Users]

  Powered by Linux