• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Lots more questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lots more questions...


  • Subject: Re: Lots more questions...
  • From: Ernst Mulder <email@hidden>
  • Date: Sun, 26 Jan 2003 16:22:21 +0100

A simple solution is setting DISPLAY in your shell's rc conditionally. E.g.
for tcsh in ~/.tcshrc:

#
# Only set DISPLAY when not set already, because it might have been
# set by ssh -X
#
if ( ! $?DISPLAY ) then
        setenv DISPLAY :0.0
endif

Ernst.
  >

> It is important to point out that the helpful advise I keep seeing
> mentioned here about setting up a default DISPLAY in your shell session
> often does not make sense in a ssh-tunneled session as such tunnels use
> alternate screens (the first '0' of the :0.0).  Typically after connecting
> to a host as shown above your DISPLAY is automagically set to something
> like :10.0 or some other high offset.  Also note that the second digit in
> display settings is your 'head' (monitor) number, though it can be assigned
> to other notions of local display.  The fact that the advise I have seen
> guards setting DISPLAY unconditionally is thus a Good Thing.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Fink, OpenDarwin, and X11
  • Next by Date: Re: Lots more questions...
  • Previous by thread: Re: Lots more questions...
  • Next by thread: Re: Lots more questions...
  • Index(es):
    • Date
    • Thread