

###############################
###### application types ######
###############################

application/annodex; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/arj; defaultarchiver %s; test=test -n "$DISPLAY"
application/docbook+xml; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/excel; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/ffDiaporama; ffDiaporama %s; test=test -n "$DISPLAY"
application/flac; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/msexcel; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/msword; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/notecase-enc; notecase %s; test=test -n "$DISPLAY"
application/notecase-plain; notecase %s; test=test -n "$DISPLAY"

#---
application/ogg; defaultmediaplayer %s; test=test -n "$DISPLAY"
# application/ogg; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
application/pdf; evince %s; test=test -n "$DISPLAY"
# application/pdf; gimp-2.8 %s; test=test -n "$DISPLAY"
# application/pdf; xournal %s; test=test -n "$DISPLAY"

#---
application/postscript; evince %s; test=test -n "$DISPLAY"
# application/postscript; gimp-2.8 %s; test=test -n "$DISPLAY"

#---
application/rtf; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/smil; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/tab-separated-values; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/vnd.lotus-1-2-3; defaultspreadsheet %s; test=test -n "$DISPLAY"

#---
application/vnd.mozilla.xul+xml; defaultbrowser %s; test=test -n "$DISPLAY"
# application/vnd.mozilla.xul+xml; firefox-spot %s; test=test -n "$DISPLAY"
# application/vnd.mozilla.xul+xml; google-chrome-spot %s; test=test -n "$DISPLAY"
# application/vnd.mozilla.xul+xml; seamonkey-spot %s; test=test -n "$DISPLAY"

#---
application/vnd.ms-asf; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/vnd.ms-excel; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/vnd.oasis.opendocument.text; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/vnd.oasis.opendocument.text-template; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/vnd.oasis.opendocument.text-web; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/vnd.plain; defaultwordprocessor %s; test=test -n "$DISPLAY"

#---
application/vnd.rn-realmedia; defaultmediaplayer %s; test=test -n "$DISPLAY"
# application/vnd.rn-realmedia; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
application/vnd.stardivision.writer; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/vnd.sun.xml.calc; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/vnd.sun.xml.calc.template; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/vnd.sun.xml.writer; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/vnd.wordperfect; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/wordperfect5.1; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/wordperfect6; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/x-123; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-7z-compressed; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-abicollab; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/x-defaultwordprocessor; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/x-annodex; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/x-applix-spreadsheet; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-arj; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-armagetronad; armagetronad %s; test=test -n "$DISPLAY"
application/x-bittorrent; transmission-qt --minimized %s; test=test -n "$DISPLAY"
application/x-bzip; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-bzip-compressed-tar; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-bzip2; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-bzip2-compressed-tar; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-bzpdf; evince %s; test=test -n "$DISPLAY"
application/x-bzpostscript; evince %s; test=test -n "$DISPLAY"
application/x-cb7; evince %s; test=test -n "$DISPLAY"
application/x-cbr; evince %s; test=test -n "$DISPLAY"
application/x-cbt; evince %s; test=test -n "$DISPLAY"
application/x-cbz; evince %s; test=test -n "$DISPLAY"
application/x-compressed-tar; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-crossmark; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/x-dbase; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-dbf; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-designer; /opt/qt4/bin/designer %s; test=test -n "$DISPLAY"
application/x-dia-diagram; dia %s; test=test -n "$DISPLAY"
application/x-dos_ms_excel; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-excel; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-extension-mp4; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
application/x-flac; defaultmediaplayer %s; test=test -n "$DISPLAY"
# application/x-flac; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
application/x-flash-video; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/x-glade; glade-3 %s; test=test -n "$DISPLAY"
application/x-defaultspreadsheet; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-gzip; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-gzpdf; evince %s; test=test -n "$DISPLAY"
application/x-gzpostscript; evince %s; test=test -n "$DISPLAY"
application/x-httpd-php3; geany %s; test=test -n "$DISPLAY"
application/x-httpd-php4; geany %s; test=test -n "$DISPLAY"
application/x-httpd-php5; geany %s; test=test -n "$DISPLAY"
application/x-linguist; /opt/qt4/bin/linguist %s; test=test -n "$DISPLAY"
application/x-matroska; /usr/bin/vlc %s; test=test -n "$DISPLAY"
application/x-meld-comparison; meld %s; test=test -n "$DISPLAY"
application/x-mplayer2; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/x-mps; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-ms-excel; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-msexcel; defaultspreadsheet %s; test=test -n "$DISPLAY"

#---
application/x-ogg; defaultmediaplayer %s; test=test -n "$DISPLAY"
# application/x-ogg; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
application/x-ogm; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/x-ogm-audio; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/x-ogm-video; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/x-oleo; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-openbox-theme; obconf %s; test=test -n "$DISPLAY"
application/x-php; geany %s; test=test -n "$DISPLAY"
application/x-planperfect; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-quattropro; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-quicktimeplayer; defaultmediaplayer %s; test=test -n "$DISPLAY"
application/x-rar; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-rar-compressed; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-sc; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-shockwave-flash; /usr/bin/vlc %s; test=test -n "$DISPLAY"
application/x-sylk; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-t602; defaultwordprocessor %s; test=test -n "$DISPLAY"
application/x-tar; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-virtualbox-ova; VirtualBox %s; test=test -n "$DISPLAY"
application/x-virtualbox-ovf; VirtualBox %s; test=test -n "$DISPLAY"
application/x-virtualbox-vbox; VirtualBox %s; test=test -n "$DISPLAY"
application/x-virtualbox-vbox-extpack; VirtualBox %s; test=test -n "$DISPLAY"
application/x-xbase; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-xls; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/x-xoj; xournal %s; test=test -n "$DISPLAY"
application/x-zip; defaultarchiver %s; test=test -n "$DISPLAY"
application/x-zip-compressed; defaultarchiver %s; test=test -n "$DISPLAY"

#---
application/xhtml+xml; defaultbrowser %s; test=test -n "$DISPLAY"
# application/xhtml+xml; defaultwordprocessor %s; test=test -n "$DISPLAY"
# application/xhtml+xml; firefox-spot %s; test=test -n "$DISPLAY"
# application/xhtml+xml; google-chrome-spot %s; test=test -n "$DISPLAY"
# application/xhtml+xml; seamonkey-spot %s; test=test -n "$DISPLAY"

#---
application/xls; defaultspreadsheet %s; test=test -n "$DISPLAY"
application/xml; geany %s; test=test -n "$DISPLAY"

#---
application/xspf+xml; defaultmediaplayer %s; test=test -n "$DISPLAY"
# application/xspf+xml; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
application/zip; defaultarchiver %s; test=test -n "$DISPLAY"

#########################
###### audio types ######
#########################

audio/168sv; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/8svx; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/ac3; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/aiff; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/amr; /usr/bin/vlc %s; test=test -n "$DISPLAY"
audio/amr-wb; /usr/bin/vlc %s; test=test -n "$DISPLAY"
audio/annodex; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/basic; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/flac; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/mp3; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
audio/mp4; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/mp4; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/mpeg; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/mpeg; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/mpeg2; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/mpeg3; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
audio/mpegurl; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/mpegurl; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
audio/musepack; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/ogg; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/vnd.rn-realaudio; /usr/bin/vlc %s; test=test -n "$DISPLAY"
audio/wav; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/webm; /usr/bin/vlc %s; test=test -n "$DISPLAY"
audio/x-16sv; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/x-8svx; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/x-aiff; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/x-annodex; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/x-basic; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
audio/x-flac; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-flac; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-m4a; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-m4a; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-matroska; /usr/bin/vlc %s; test=test -n "$DISPLAY"
audio/x-mp3; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-mpeg; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-mpeg; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-mpeg2; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/x-mpeg3; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
audio/x-mpegurl; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-mpegurl; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-mpegurl; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-ms-asf; /usr/bin/vlc %s; test=test -n "$DISPLAY"
audio/x-ms-asx; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-ms-wax; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-ms-wax; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-ms-wma; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/x-ms-wvx; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/x-musepack; defaultmediaplayer %s; test=test -n "$DISPLAY"
audio/x-ogg; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
audio/x-pn-aiff; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-pn-aiff; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-pn-au; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-pn-au; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-pn-realaudio; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-pn-realaudio; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-pn-realaudio-plugin; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-pn-realaudio-plugin; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-pn-wav; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-pn-wav; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-pn-windows-acm; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-pn-windows-acm; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-real-audio; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-real-audio; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-realaudio; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
audio/x-scpls; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-scpls; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-vorbis+ogg; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
audio/x-wav; defaultmediaplayer %s; test=test -n "$DISPLAY"
# audio/x-wav; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#########################
###### image types ######
#########################


#---
image/bmp; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/bmp; mtpaint %s; test=test -n "$DISPLAY"
# image/bmp; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/bmp; /usr/bin/fotoxx %s; test=test -n "$DISPLAY"

#---
image/g3fax; gimp-2.8 %s; test=test -n "$DISPLAY"

#---
image/gif; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/gif; mtpaint %s; test=test -n "$DISPLAY"
# image/gif; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/gif; /usr/bin/fotoxx %s; test=test -n "$DISPLAY"

#---
image/ilbm; defaultmediaplayer %s; test=test -n "$DISPLAY"
image/jp2; gimp-2.8 %s; test=test -n "$DISPLAY"

#---
image/jpeg; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/jpeg; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/jpeg; /usr/bin/fotoxx %s; test=test -n "$DISPLAY"
# image/jpeg; mtpaint %s; test=test -n "$DISPLAY"

#---
image/jpeg2000; gimp-2.8 %s; test=test -n "$DISPLAY"

#---
image/jpg; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/jpg; mtpaint %s; test=test -n "$DISPLAY"

#---
image/jpx; gimp-2.8 %s; test=test -n "$DISPLAY"

#---
image/pjpeg; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/pjpeg; mtpaint %s; test=test -n "$DISPLAY"

#---
image/png; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/png; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/png; /usr/bin/fotoxx %s; test=test -n "$DISPLAY"
# image/png; mtpaint %s; test=test -n "$DISPLAY"

#---
image/svg; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/svg; mtpaint %s; test=test -n "$DISPLAY"

#---
image/svg+xml; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/svg+xml; mtpaint %s; test=test -n "$DISPLAY"

#---
image/svg+xml-compressed; defaultimageviewer %s; test=test -n "$DISPLAY"

#---
image/tiff; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/tiff; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/tiff; /usr/bin/fotoxx %s; test=test -n "$DISPLAY"
# image/tiff; mtpaint %s; test=test -n "$DISPLAY"

#---
image/vnd.djvu; evince %s; test=test -n "$DISPLAY"
image/vnd.rn-realpix; /usr/bin/vlc %s; test=test -n "$DISPLAY"
image/vnd.wap.wbmp; defaultimageviewer %s; test=test -n "$DISPLAY"

#---
image/x-bmp; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-bmp; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-bzeps; evince %s; test=test -n "$DISPLAY"
image/x-compressed-xcf; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-eps; evince %s; test=test -n "$DISPLAY"
image/x-fits; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-gimp-gbr; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-gimp-gih; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-gimp-pat; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-gray; defaultimageviewer %s; test=test -n "$DISPLAY"
image/x-gzeps; evince %s; test=test -n "$DISPLAY"
image/x-icb; defaultimageviewer %s; test=test -n "$DISPLAY"
image/x-ico; defaultimageviewer %s; test=test -n "$DISPLAY"
image/x-icon; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-ilbm; defaultmediaplayer %s; test=test -n "$DISPLAY"
image/x-ms-bmp; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-ms-bmp; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-pcx; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-pcx; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/x-pcx; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-png; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-png; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-portable-anymap; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-portable-anymap; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/x-portable-anymap; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-portable-bitmap; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-portable-bitmap; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/x-portable-bitmap; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-portable-graymap; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-portable-graymap; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/x-portable-graymap; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-portable-pixmap; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-portable-pixmap; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/x-portable-pixmap; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-psd; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-psp; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-sgi; gimp-2.8 %s; test=test -n "$DISPLAY"

#---
image/x-tga; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-tga; mtpaint %s; test=test -n "$DISPLAY"
# image/x-tga; gimp-2.8 %s; test=test -n "$DISPLAY"

#---
image/x-xbitmap; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-xbitmap; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/x-xbitmap; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-xbm; mtpaint %s; test=test -n "$DISPLAY"
image/x-xcf; gimp-2.8 %s; test=test -n "$DISPLAY"
image/x-xcursor; gimp-2.8 %s; test=test -n "$DISPLAY"

#---
image/x-xpixmap; defaultimageviewer %s; test=test -n "$DISPLAY"
# image/x-xpixmap; gimp-2.8 %s; test=test -n "$DISPLAY"
# image/x-xpixmap; mtpaint %s; test=test -n "$DISPLAY"

#---
image/x-xpm; mtpaint %s; test=test -n "$DISPLAY"
image/x-xwindowdump; gimp-2.8 %s; test=test -n "$DISPLAY"
image/xbm; mtpaint %s; test=test -n "$DISPLAY"
image/xpm; mtpaint %s; test=test -n "$DISPLAY"

###########################
###### message types ######
###########################


#---
message/rfc822; defaultmail %s; test=test -n "$DISPLAY"
# message/rfc822; sylpheed-spot %s; test=test -n "$DISPLAY"

########################
###### misc types ######
########################


#---
misc/ultravox; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#############################
###### multipart types ######
#############################

multipart/x-zip; defaultarchiver %s; test=test -n "$DISPLAY"

########################
###### text types ######
########################

text/css; geany %s; test=test -n "$DISPLAY"
text/csv; defaultspreadsheet %s; test=test -n "$DISPLAY"

#---
text/html; defaultbrowser %s; test=test -n "$DISPLAY"
# text/html; defaultwordprocessor %s; test=test -n "$DISPLAY"
# text/html; firefox-spot %s; test=test -n "$DISPLAY"
# text/html; geany %s; test=test -n "$DISPLAY"
# text/html; google-chrome-spot %s; test=test -n "$DISPLAY"
# text/html; seamonkey-spot %s; test=test -n "$DISPLAY"

#---
text/mml; defaultbrowser %s; test=test -n "$DISPLAY"
# text/mml; firefox-spot %s; test=test -n "$DISPLAY"
# text/mml; google-chrome-spot %s; test=test -n "$DISPLAY"
# text/mml; seamonkey-spot %s; test=test -n "$DISPLAY"

#---
text/plain; geany %s; test=test -n "$DISPLAY"
# text/plain; defaultwordprocessor %s; test=test -n "$DISPLAY"

#---
text/spreadsheet; defaultspreadsheet %s; test=test -n "$DISPLAY"
text/tab-separated-values; defaultspreadsheet %s; test=test -n "$DISPLAY"
text/vnd.trolltech.linguist; /opt/qt4/bin/linguist %s; test=test -n "$DISPLAY"
text/vnd.wap.wml; defaultwordprocessor %s; test=test -n "$DISPLAY"
text/x-defaultwordprocessor; defaultwordprocessor %s; test=test -n "$DISPLAY"
text/x-c++hdr; geany %s; test=test -n "$DISPLAY"
text/x-c++src; geany %s; test=test -n "$DISPLAY"
text/x-chdr; geany %s; test=test -n "$DISPLAY"
text/x-csrc; geany %s; test=test -n "$DISPLAY"
text/x-csv; defaultspreadsheet %s; test=test -n "$DISPLAY"
text/x-diff; geany %s; test=test -n "$DISPLAY"
text/x-dsrc; geany %s; test=test -n "$DISPLAY"
text/x-java; geany %s; test=test -n "$DISPLAY"
text/x-pascal; geany %s; test=test -n "$DISPLAY"
text/x-perl; geany %s; test=test -n "$DISPLAY"
text/x-python; geany %s; test=test -n "$DISPLAY"
text/x-sql; geany %s; test=test -n "$DISPLAY"
text/x-xml-defaultwordprocessor; defaultwordprocessor %s; test=test -n "$DISPLAY"
text/x-xpraconfig; xpra_launcher %s; test=test -n "$DISPLAY"

#---
text/xml; defaultbrowser %s; test=test -n "$DISPLAY"
# text/xml; firefox-spot %s; test=test -n "$DISPLAY"
# text/xml; google-chrome-spot %s; test=test -n "$DISPLAY"
# text/xml; seamonkey-spot %s; test=test -n "$DISPLAY"

#########################
###### video types ######
#########################


#---
video/anim; defaultmediaplayer %s; test=test -n "$DISPLAY"
video/annodex; defaultmediaplayer %s; test=test -n "$DISPLAY"
video/dv; /usr/bin/vlc %s; test=test -n "$DISPLAY"
video/flv; defaultmediaplayer %s; test=test -n "$DISPLAY"
video/mkv; defaultmediaplayer %s; test=test -n "$DISPLAY"
video/mp2p; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
video/mp2t; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/mp2t; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/mp4; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/mp4; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/mp4v-es; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/mpeg; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/mpeg; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/msvideo; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/msvideo; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/ogg; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
video/quicktime; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/quicktime; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/vnd.rn-realvideo; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/webm; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/webm; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/x-anim; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/x-anim; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/x-annodex; defaultmediaplayer %s; test=test -n "$DISPLAY"
video/x-avi; /usr/bin/vlc %s; test=test -n "$DISPLAY"
video/x-flc; /usr/bin/vlc %s; test=test -n "$DISPLAY"
video/x-fli; /usr/bin/vlc %s; test=test -n "$DISPLAY"
video/x-flic; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
video/x-flv; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/x-flv; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/x-matroska; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/x-matroska; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/x-mpeg; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/x-mpeg; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/x-ms-asf; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/x-ms-asf; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/x-ms-asf-plugin; defaultmediaplayer %s; test=test -n "$DISPLAY"
video/x-ms-wax; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
video/x-ms-wmv; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/x-ms-wmv; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/x-ms-wvx; defaultmediaplayer %s; test=test -n "$DISPLAY"

#---
video/x-msvideo; defaultmediaplayer %s; test=test -n "$DISPLAY"
# video/x-msvideo; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
video/x-nsv; /usr/bin/vlc %s; test=test -n "$DISPLAY"
video/x-ogg; defaultmediaplayer %s; test=test -n "$DISPLAY"
video/x-ogm+ogg; /usr/bin/vlc %s; test=test -n "$DISPLAY"
video/x-quicktime; defaultmediaplayer %s; test=test -n "$DISPLAY"

#############################
###### x-content types ######
#############################


#---
x-content/audio-cdda; defaultmediaplayer %s; test=test -n "$DISPLAY"
# x-content/audio-cdda; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
x-content/audio-player; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
x-content/video-dvd; defaultmediaplayer %s; test=test -n "$DISPLAY"
# x-content/video-dvd; defaultmediaplayer %s; test=test -n "$DISPLAY"
# x-content/video-dvd; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
x-content/video-svcd; defaultmediaplayer %s; test=test -n "$DISPLAY"
# x-content/video-svcd; defaultmediaplayer %s; test=test -n "$DISPLAY"
# x-content/video-svcd; /usr/bin/vlc %s; test=test -n "$DISPLAY"

#---
x-content/video-vcd; defaultmediaplayer %s; test=test -n "$DISPLAY"
# x-content/video-vcd; defaultmediaplayer %s; test=test -n "$DISPLAY"
# x-content/video-vcd; /usr/bin/vlc %s; test=test -n "$DISPLAY"

####################################
###### x-scheme-handler types ######
####################################


#---
x-scheme-handler/http; defaultbrowser %s; test=test -n "$DISPLAY"
# x-scheme-handler/http; firefox-spot %s; test=test -n "$DISPLAY"
# x-scheme-handler/http; google-chrome-spot %s; test=test -n "$DISPLAY"
# x-scheme-handler/http; seamonkey-spot %s; test=test -n "$DISPLAY"

#---
x-scheme-handler/https; defaultbrowser %s; test=test -n "$DISPLAY"
# x-scheme-handler/https; firefox-spot %s; test=test -n "$DISPLAY"
# x-scheme-handler/https; google-chrome-spot %s; test=test -n "$DISPLAY"
# x-scheme-handler/https; seamonkey-spot %s; test=test -n "$DISPLAY"

#---
x-scheme-handler/magnet; transmission-qt --minimized %s; test=test -n "$DISPLAY"
x-scheme-handler/mailto; sylpheed-spot %s; test=test -n "$DISPLAY"
x-scheme-handler/mms; /usr/bin/vlc %s; test=test -n "$DISPLAY"
x-scheme-handler/rtmp; /usr/bin/vlc %s; test=test -n "$DISPLAY"
x-scheme-handler/rtsp; /usr/bin/vlc %s; test=test -n "$DISPLAY"

##################################
###### zz-application types ######
##################################

zz-application/zz-winassoc-xls; defaultspreadsheet %s; test=test -n "$DISPLAY"
