# MIME types -> viewers map, RFC 1524. application/ogg; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="Ogg container files"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 application/ogg; audacious '%s'; description="Ogg container files"; test=test -n "$DISPLAY" -a -n "`whence audacious`" application/ogg; mplay '%s'; description="Ogg container files"; test=test -n "$DISPLAY" -a -n "`whence mplayer`" application/pdf; evince '%s'; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`whence evince`" application/pdf; xpdf '%s'; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`whence xpdf`" application/pdf; gv '%s'; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`whence gv`" application/pdf; pdftotext '%s'; copiousoutput; description="Portable Document Format files"; test=test -n "`whence pdftotext`" application/pdf; pstotext '%s'; copiousoutput; description="Portable Document Format files"; test=test -n "`whence pstotext`" application/postscript; evince '%s'; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`whence evince`" application/postscript; xpdf '%s'; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`whence xpdf`" application/postscript; gv '%s'; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`whence gv`" application/postscript; ghostview '%s'; description="Postscript files"; test=test -n "$DISPLAY" -a -n "`whence ghostview`" application/postscript; pstotext '%s'; copiousoutput; description="PostScript files"; test=test -n "`whence pstotext`" application/x-bittorrent; bittorrent.py '%s'; test=test -n "$DISPLAY" -a -n "`whence bittorrent.py`" application/x-dvi; xdvi '%s'; description="DVI files"; test=test -n "$DISPLAY" -a -n "`whence xdvi`" application/x-fb2; fbreader '%s'; description="FicionBook fb2 files"; test=test -n "$DISPLAY" -a -n "`whence fbreader`" application/x-fig; xfig '%s'; description="FIG files"; test=test -n "$DISPLAY" -a -n "`whence xfig`" application/x-tar; tar tvf '%s'; description="TAR files"; copiousoutput application/x-chm; fbreader '%s'; description="Compiled HTML files"; test=test -n "$DISPLAY" -a -n "`whence fbreader`" application/msword; wvHtml '%s' - | elinks -dump; copiousoutput; description="M$ Word Text"; test=test -n "`whence wvHtml`" -a -n "`whence elinks`" application/msword; wvHtml '%s' - | elinks; description="M$ Word Text"; test=test -n "`whence wvHtml`" -a -n "`whence elinks`" application/msword; catdoc '%s'; copiousoutput; description="M$ Word Text"; test=test -n "`whence catdoc`" application/msword; wordview '%s'; description="M$ Word Text"; test=test -n "$DISPLAY" -a -n "`whence wordview`" application/vnd.ms-excel; xls2csv '%s'; copiousoutput; description="M$ Excel files"; test=test -n "`whence xls2csv`" audio/mpeg; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 audio/mpeg; audacious '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence audacious`" audio/mpeg; mplay '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence mplay`" audio/mpeg; smpeg '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence smpeg`" audio/mpeg; xplaygizmo -p xaudio '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence xplaygizmo`" -a -n "`whence xaudio`" audio/mpeg3; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 audio/mpeg3; audacious '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence audacious`" audio/mpeg3; mplay '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence mplay`" audio/mpeg3; smpeg '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence smpeg`" audio/mpegurl; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="MPEG URLs"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 audio/mpegurl; mplay -playlist '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence mplay`" audio/x-mod; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="MOD audio files"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 audio/x-mod; audacious '%s'; description="MOD audio files"; test=test -n "$DISPLAY" -a -n "`whence audacious`" audio/x-mpeg; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 audio/x-mpeg; audacious '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence audacious`" audio/x-mpeg; mplay '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence mplay`" audio/x-mpeg; smpeg '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence smpeg`" audio/ogg; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="Ogg Vorbis audio files"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 audio/ogg; audacious '%s'; description="Ogg Vorbis audio files"; test=test -n "$DISPLAY" -a -n "`whence audacious`" audio/ogg; mplay '%s'; description="MPEG audio files"; test=test -n "$DISPLAY" -a -n "`whence mplay`" audio/x-pn-realaudio; realplay '%s'; description="RealAudio files"; test=test -n "$DISPLAY" -a -n "`whence realplay`" audio/x-realaudio; realplay '%s'; description="RealAudio files"; test=test -n "$DISPLAY" -a -n "`whence realplay`" audio/x-wav; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="WAV audio files"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 audio/x-wav; audacious '%s'; description="WAV audio files"; test=test -n "$DISPLAY" -a -n "`whence audacious`" audio/x-wav; mplay '%s'; description="WAV audio files"; test=test -n "$DISPLAY" -a -n "`whence mplay`" audio/*; audtool --playlist-clear --playlist-addurl '%s' --playback-play; description="Audio files"; test=test -n "$DISPLAY" -a -n "`whence audtool`" -a "`audtool --get-volume`" -gt 0 audio/*; audacious '%s'; description="Audio files"; test=test -n "$DISPLAY" -a -n "`whence audacious`" audio/*; mplay '%s'; description="Audio files"; test=test -n "$DISPLAY" -a -n "`whence mplay`" image/x-djvu; evince '%s'; description="DJVu image files"; test=test -n "$DISPLAY" -a -n "`whence evince`" image/x-djvu; djview '%s'; description="DJVu image files"; test=test -n "$DISPLAY" -a -n "`whence djview`" image/gif; xli '%s'; description="GIF image files"; test=test -n "$DISPLAY" -a -n "`whence xli`" image/jpeg; xli '%s'; description="JPEG image files"; test=test -n "$DISPLAY" -a -n "`whence xli`" image/tiff; xview '%s'; description="TIFF image files"; test=test -n "$DISPLAY" -a -n "`whence xview`" image/x-xpm2; sxpm '%s'; description="XPM image files"; test=test -n "$DISPLAY" -a -n "`whence sxpm`" image/x-xpm3; sxpm '%s'; description="XPM image files"; test=test -n "$DISPLAY" -a -n "`whence sxpm`" image/*; xli '%s'; description="Image files"; test=test -n "$DISPLAY" -a -n "`whence xli`" text/html; webbrowser "file://`abspath.py '%s'`"; description="HTML Text"; test=test -n "$DISPLAY" -a -n "`whence webbrowser`" -a -n "`whence abspath.py`" text/html; webbrowser "file://`abspath.py '%s'`"; needsterminal; description="HTML Text"; test=test -n "`whence webbrowser`" -a -n "`whence abspath.py`" text/html; webdump '%s'; copiousoutput; description="HTML Text"; test=test -n "`whence elinks`" -a -n "`whence webdump`" text/html; webdump2 '%s'; copiousoutput; description="HTML Text"; test=test -n "`whence links2`" -a -n "`whence webdump2`" text/html; xlinks2 -force-html '%s'; description="HTML Text"; test=test -n "$DISPLAY" -a -n "`whence links2`" text/html; links2 -force-html '%s'; needsterminal; description="HTML Text"; test=test -n "`whence links2`" text/html; links -force-html '%s'; needsterminal; description="HTML Text"; test=test -n "`whence links`" text/html; elinks -force-html '%s'; needsterminal; description="HTML Text"; test=test -n "`whence elinks`" text/html; elinks -force-html -dump '%s'; copiousoutput; description="HTML Text"; test=test -n "`whence elinks`" text/html; w3m -T text/html '%s'; needsterminal; description="HTML Text"; test=test -n "`whence w3m`"; nametemplate='%s'.html text/html; w3m -T text/html -dump '%s'; copiousoutput; description="HTML Text"; test=test -n "`whence w3m`"; nametemplate='%s'.html text/html; lynx -force_html '%s'; needsterminal; description="HTML Text"; test=test -n "`whence lynx`"; nametemplate='%s'.html text/html; lynx -force_html -dump '%s'; copiousoutput; description="HTML Text"; test=test -n "`whence lynx`"; nametemplate='%s'.html text/plain; less '%s'; edit=vim '%s'; needsterminal; description=Text; test=test -n "`whence less`" text/plain; more '%s'; edit=vim '%s'; needsterminal; description=Text text/rtf; fbreader '%s'; description="Rich Text Format"; test=test -n "$DISPLAY" -a -n "`whence catdoc`" text/rtf; catdoc '%s'; copiousoutput; description="Rich Text Format"; test=test -n "`whence catdoc`" text/rtf; unrtf --html --nopict '%s'; copiousoutput; description="Rich Text Format"; test=test -n "`whence unrtf`" text/*; gview '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; description="Text"; test=test -n "$DISPLAY" -a -n "`whence gview`" text/*; less '%s'; edit=vim '%s'; needsterminal; description=Text; test=test -n "`whence less`" text/*; more '%s'; edit=vim '%s'; needsterminal; description=Text video/mpeg; mplay '%s'; description="MPEG video files"; test=test -n "$DISPLAY" -a -n "`whence mplayer`" video/mpeg; smpeg '%s'; description="MPEG video files"; test=test -n "$DISPLAY" -a -n "`whence smpeg`" video/ogg; mplay '%s'; description="Ogg Theora files"; test=test -n "$DISPLAY" -a -n "`whence mplayer`" video/quicktime; mplay '%s'; description="QuickTime video files"; test=test -n "$DISPLAY" -a -n "`whence mplayer`" video/x-msvideo; mplay '%s'; description="AVI video files"; test=test -n "$DISPLAY" -a -n "`whence mplayer`" video/*; mplay '%s'; description="Video files"; test=test -n "$DISPLAY" -a -n "`whence mplayer`" x-world/x-vrml; freewrl -url '%s'; test=test -n "$DISPLAY" -a -n "`whence freewrl`"; description="VRML world"; nametemplate='%s'.wrl */*; less '%s'; needsterminal; test=test -n "`whence less`" */*; cat -vT '%s'; copiousoutput