By default M opens pdf files with gimp. I found similar problem here -
http://bugzilla.gnome.org/show_bug.cgi?id=539117 It seems wx uses gnome-vfs, which is deprecated and there is no
way to edit file associations of gnome-vfs with current gnome.
If it is so, it should probably use gvfs.