Re: Lots more questions...
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.