in .mailcap: text/html; /home/gaio/bin/firefox %s; test=test -n "$DISPLAY" e /home/gaio/bin/firefox è uno script che contiene: #!/bin/sh /usr/bin/firefox --new-tab "$1" sleep 2 exit 0