Re: RunningX replacement
On Sun, Apr 08, 2001 at 07:30:05PM -0700, Igor Pruchanskiy wrote: Today i finally got to the Mutt MIME configuration part. I spent about 10 minutes trying to compile RunningX.ci, link to which i found on mutt.org. I was getting all kinds of errors and i did not feel like digging through that, so i came up with my own little RunningX replacement. Just a simple shell script. -- snip -- #/bin/sh if [ "$DISPLAY" = " " ] Did you really mean to compare with a space? then exit 0 else exit 1 fi -- snip -- Wouldn't something like this be faster? --snip-- #/bin/sh set -e [ -n "$DISPLAY" ] --snip-- -- Karl E. Jrgensen [EMAIL PROTECTED] www.karl.jorgensen.com Today's fortune: Mathematicians practice absolute freedom. -- Henry Adams PGP signature
Re: RunningX replacement
On Sun, Apr 08, 2001 at 07:30:05PM -0700, Igor Pruchanskiy wrote: Today i finally got to the Mutt MIME configuration part. I spent about 10 minutes trying to compile RunningX.ci, link to which i found on mutt.org. I was getting all kinds of errors and i did not feel like digging through that, so i came up with my own little RunningX replacement. Just a simple shell script. -- snip -- #/bin/sh if [ "$DISPLAY" = " " ] then exit 0 else exit 1 fi -- snip -- I hope that would help someone :) igor Hi Igor, Thanks for this "un-expected" tip. I posted a query about RunningX on another list but got no definitive answer. An application kept on asking for RunningX which unfortunately was not on my system and I had no idea what it's for or where I can get one... till now. Thanks again. -- Horace G. Friend III [EMAIL PROTECTED] GnuPG DSA/ElGamal Key Fingerprint 9295 80C4 C723 621B 9C2D B53E D432 7936 4CA9 8AD6
RunningX replacement
Today i finally got to the Mutt MIME configuration part. I spent about 10 minutes trying to compile RunningX.ci, link to which i found on mutt.org. I was getting all kinds of errors and i did not feel like digging through that, so i came up with my own little RunningX replacement. Just a simple shell script. -- snip -- #/bin/sh if [ "$DISPLAY" = " " ] then exit 0 else exit 1 fi -- snip -- and also i found a really usefull mutt feature set mailcap_path="~/.mutt/mailcap" Here is my mailcap for mutt: text/html; links -dump %s ; copiousoutput text/plain; more %s; copiousoutput application/pdf;/usr/local/bin/acroread %s image/*; xv %s ; text=RunningX I didn't what to use ~/.mailcap because Netscape would open all images with xv if i define image/*; xv %s in ~/.mailcap I hope that would help someone :) igor
Re: RunningX replacement
Igor, thanks. EW On Sun, Apr 08, 2001 at 07:30:05PM -0700, Igor Pruchanskiy wrote: Today i finally got to the Mutt MIME configuration part. I spent about 10 minutes trying to compile RunningX.ci, link to which i found on mutt.org. I was getting all kinds of errors and i did not feel like digging through that, so i came up with my own little RunningX replacement. Just a simple shell script. -- snip -- #/bin/sh if [ "$DISPLAY" = " " ] then exit 0 else exit 1 fi -- snip -- and also i found a really usefull mutt feature set mailcap_path="~/.mutt/mailcap" Here is my mailcap for mutt: text/html; links -dump %s ; copiousoutput text/plain; more %s; copiousoutput application/pdf;/usr/local/bin/acroread %s image/*; xv %s ; text=RunningX I didn't what to use ~/.mailcap because Netscape would open all images with xv if i define image/*; xv %s in ~/.mailcap I hope that would help someone :) igor