On Thu, 27 Jan 2005, Roberto Manuel Latorre wrote: > > On Jan 26, 2005, at 08:45, Wayne Brehob wrote: > > Alternately, you can set DISPLAY in your .login file (which generally > > gets read for new windows, but not every shell in that new window): > > > > if ($?DISPLAY == 0) then > > if ($?REMOTEHOST) then > > setenv DISPLAY ${REMOTEHOST}:0 > > else > > setenv DISPLAY :0 > > endif > > endif > > > > If you don't login to your Mac from other places, that may be a bit > > overkill and "setenv DISPLAY :0" is all you need. Since Darwin is kind > > enough to set REMOTEHOST for you, though, you can use it for DISPLAY > > in most cases. > > > > Wayne > > > Hei, Wayne! > > Please, how do you do that in bash, the Panther shell? > Well, 'bash' is the DEFAULT Panther shell. I guess I forgot that not everybody switches this to 'tcsh'.
I don't use 'bash' regularly, but I do a lot of bourne shell programming, so I'll give it a try. My guess would be something like this: Edit $HOME/.bash_login or $HOME/.bash_profile and put this in it: if [ -z "$DISPLAY" ]; then if [ -n "$REMOTEHOST" ]; then export DISPLAY=${REMOTEHOST}:0 else export DISPLAY=:0 fi fi If the "export var=val" doesn't work, you can do this: DISPLAY=:0; export DISPLAY Wayne ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Wayne Brehob [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users