From my understanding, it's hardly ever the case these days that people do X over straight TCP. It's woefully insecure so almost all smart admins shut it off. Typically it's configured such that only requests from the local machine will be accepted. This works over ssh because your ssh client and the ssh server tunnel the information so it looks like it's happening from the localhost. I would imagine that virtually all X usage these days is either on the work station itself, or over such a tunnel.

I really do think that emacs just tests the DISPLAY variable, and I'll explain why... When I'm working under Windows, I don't always have an X server up and running. I have to remember to turn on Exceed when I want to do work. When I use SecureCRT to ssh into something, the DISPLAY environment var gets set no matter what. When I fire up emacs, and I've remembered to turn on Exceed I get a nice little X emacs window. When I forget to turn on Exceed, however, emacs fails to start, and SecureCRT puts up a popup window saying that there was an error, the text of which I forget, but it's something like "display not found".

I think that this is a reasonable guess, but if you've got a better idea as to the reason for the behavior of that software triad I'd like to hear it, because I can't think of one off the top of my head.


In reply to Re: Re: Re: X or console? by skyknight
in thread X or console? by batkins

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.