What does the command "file --mime-type foo.pdf" give as output? On Ubuntu 16.10, /usr/share/applications/vlc.desktop claims to support following mime-types:
application/ogg application/x-ogg audio/ogg audio/x-vorbis audio/x-vorbis+ogg video/ogg video/x-ogm+ogg video/x-theora+ogg video/x-theora audio/x-speex audio/opus application/x-flac audio/flac audio/x-flac audio/x-ms-asf audio/x-ms-asx audio/x-ms-wax audio/x-ms-wma video/x-ms-asf video/x-ms-asf-plugin video/x-ms-asx video/x-ms-wm video/x-ms-wmv video/x-ms-wmx video/x-ms-wvx video/x-msvideo audio/x-pn-windows-acm video/divx video/msvideo video/vnd.divx video/x-avi application/vnd.rn-realmedia application/vnd.rn-realmedia-vbr audio/vnd.rn-realaudio audio/x-pn-realaudio audio/x-pn-realaudio-plugin audio/x-real-audio audio/x-realaudio video/vnd.rn-realvideo audio/mpeg audio/mpg audio/mp1 audio/mp2 audio/mp3 audio/x-mp1 audio/x-mp2 audio/x-mp3 audio/x-mpeg audio/x-mpg video/mp2t video/mpeg video/mpeg-system video/x-mpeg video/x-mpeg2 video/x-mpeg-system application/mpeg4-iod application/mpeg4-muxcodetable application/x-extension-m4a application/x-extension-mp4 audio/aac audio/m4a audio/mp4 audio/x-m4a audio/x-aac video/mp4 video/mp4v-es video/x-m4v application/x-quicktime-media-link application/x-quicktimeplayer video/quicktime application/x-matroska audio/x-matroska video/x-matroska video/webm audio/webm audio/3gpp audio/3gpp2 audio/AMR audio/AMR-WB audio/amr audio/amr-wb video/3gp video/3gpp video/3gpp2 x-scheme-handler/mms x-scheme-handler/mmsh x-scheme-handler/rtsp x-scheme-handler/rtp x-scheme-handler/rtmp x-scheme-handler/icy x-scheme-handler/icyx x-content/video-vcd x-content/video-svcd x-content/video-dvd x-content/audio-cdda x-content/audio-player application/ram application/xspf+xml audio/mpegurl audio/x-mpegurl audio/scpls audio/x-scpls text/google-video-pointer text/x-google-video-pointer video/vnd.mpegurl application/vnd.apple.mpegurl application/vnd.ms-asf application/vnd.ms-wpl application/sdp audio/dv video/dv audio/x-aiff audio/x-pn-aiff video/x-anim video/x-nsv video/fli video/flv video/x-flc video/x-fli video/x-flv audio/wav audio/x-pn-au audio/x-pn-wav audio/x-wav audio/ac3 audio/eac3 audio/vnd.dts audio/vnd.dts.hd audio/vnd.dolby.heaac.1 audio/vnd.dolby.heaac.2 audio/vnd.dolby.mlp audio/basic audio/midi audio/x-ape audio/x-gsm audio/x-musepack audio/x-tta audio/x-wavpack audio/x-shorten application/x-shockwave-flash application/x-flash-video misc/ultravox image/vnd.rn-realpix audio/x-it audio/x-mod audio/x-s3m audio/x-xm application/mxf -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to totem in Ubuntu. https://bugs.launchpad.net/bugs/1657037 Title: totem should not claim to be able to open pdfs Status in totem package in Ubuntu: New Status in vlc package in Ubuntu: New Bug description: For some dumb reason, thunderbird is opening pdfs with totem instead of a decent pdf reader. I'm aware I can override and configure all this in Thunderbid, but IMO the default should Just Work. I don't have the patience atm to weed through all the xdg-open and mime and .desktop-files spaghetti shit to figure out why the f*ck a mediaplayer would ever be the default to open a pdf when decent pdf readers are available on my system, but I'm pretty sure totem is at fault here for announcing to the system somewhere that it is able to handle pdfs. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/totem/+bug/1657037/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

