On Sat, Jun 15, 2002 at 10:36:10AM +0100, Dean Richard Benson wrote:
> Hi all
> 
> I normally use mutt through a konsole session in KDE. (for my sins).
> 
> At the moment when an email contains a jpg/gif image, I have an auto
> converter to ascii art, which is great.  But I have been thinking....
> 
> .... is it possible for mutt/my environment to detect that I am in X and
> launch an x graphics viewer instead somehow?

it's possible to modify mutt - but depending on how your mailcap is setup,
may be just as easy to modify the script that runs the viewer.

what's involved - an application is needed to quietly check if the X
display can be opened.  This topic has come up occasionally, and usually
devolves into a discussion of the $DISPLAY variable, which can be misleading.

-- 
Thomas E. Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net

Reply via email to