If you have some application that you've used in the past to open files of type X, it shows up in the 'Open With' submenu. If you remove this application and try to open the file with it, thunar will correctly say something like "Failed to execute child process 'feh' (No such file or directory)". However, it should go a step further and actually remove that application from the 'Open With' submenu, since it no longer exists. Otherwise you are left with phantom applications and there is no (obvious?) way to remove them. Reproducible: Always Steps to Reproduce:
This is a bug in the package manager then, if it leaves the .desktop files of the applications around after having uninstalled them. The "Open With" actions are determined from the .desktop files in $XDG_DATA_DIRS/applications/.
$ find / -name *feh* > blah /home/stonecrest/.local/share/applications/feh-usercreated.desktop /home/stonecrest/.fehrc /var/cache/pacman/pkg/feh-1.3.4-2.pkg.tar.gz /var/lib/pacman/extra/feh-1.3.4-2 /var/abs/extra/multimedia/feh /usr/man/man3/feholdexcept.3.gz /usr/man/man3p/feholdexcept.3p.gz The only .desktop file I have is somehow in my home dir, and I certainly did not put it there, nor does my package manager ever touch ~. And $XDG_DATA_DIRS doesn't even seem to be looking there. $ echo $XDG_DATA_DIRS /usr/share:/usr/share:/usr/share:/opt/xfce4/share:/opt/xfce4/share Yet feh still shows up for right-click of image files.
Fixed with revision 19771. 2006-02-06 Benedikt Meurer <benny@xfce.org> * thunar-vfs/thunar-vfs-mime-application.c (thunar_vfs_mime_application_new_from_file): Check TryExec (or Exec) first prior to allocating a ThunarVfsMimeApplication for a .desktop file, whose associated program cannot be run. Bug #1436.
Also seems to be working, thanks Benedikt.