Re: text/html; mutt_bgrun mozilla.sh %s; test=InXTerm
On Thu, Nov 03, 2005 at 05:07:35PM -0500, Derek Martin wrote:
>
> > The DISPLAY variable is more powerful and more accurate: if it
> > exists, you should be using a terminal where an X11 server is
> > available. If it doesn't exist, you are using a terminal where an
> > X11 server is not available.
>
> Better still, define and use your own environment variable expressly
> for this purpose. Even if DISPLAY is set, you may not want to launch
> your web browser... An example would be if you're logged in remotely
> over 300 bps modem. :) I think I even still have one of those in a box
> somewhere...
>
... but how would you provide logic to set this variable?
I'm in a situation such as you suggest. I run mutt on my home machine
both locally and using ssh, in both cases DISPLAY is set. If I'm
running via ssh I probably don't want to try running mozilla as,
although it does work across the ssh 'pipe', it's horrendously slow.
I suppose I could detect the ssh environment variables but that is a
bit messy/indirect.
--
Chris Green (chris@xxxxxxxxxxx)
"Never ascribe to malice that which can be explained by incompetence."