! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
'Open With' should remove missing apps
Status:
CLOSED: FIXED

Comments

Description Scott H 2006-02-06 20:09:14 CET
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:
Comment 1 Benedikt Meurer editbugs 2006-02-06 20:12:37 CET
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/.
Comment 2 Scott H 2006-02-06 20:28:38 CET
$ 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.
Comment 3 Benedikt Meurer editbugs 2006-02-06 21:22:02 CET
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.
Comment 4 Scott H 2006-02-08 05:27:26 CET
Also seems to be working, thanks Benedikt.

Bug #1436

Reported by:
Scott H
Reported on: 2006-02-06
Last modified on: 2009-07-17

People

Assignee:
Jannis Pohlmann
CC List:
0 users

Version

Version:
0.2.1svn

Attachments

Additional information