GNOME Bugzilla – Bug 127040
Fails to open a folder with the choosen application
Last modified: 2009-08-15 18:40:50 UTC
Distribution: Fedora Core release 1 (Yarrow) Package: nautilus Severity: normal Version: GNOME2.4.0 unspecified Gnome-Distributor: GNOME.Org Synopsis: Fails to open a folder with the choosen application Bugzilla-Product: nautilus Bugzilla-Component: File and Folder Operations Bugzilla-Version: unspecified Description: Description of Problem: If you coose a different application as the default handler for a specific folder nautilus will fail to launch it. Instead it will launch the first application that in included in menu for all folders. If there is none of that it will complain that the application is invalid and offers the option to choose another one. Steps to reproduce the problem: 1. open a folder in nautilus and add Terminal to the menu for folder items. 2. choose a folder and select GThumb as the default application for that folder 3. click on that folder Actual Results: a terminal would be oppened Expected Results: gthumb should be launched How often does this happen? everytime Additional Information: ------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-11-15 06:13 ------- The original reporter (luciangabor@users.sourceforge.net) of this bug does not have an account here. Reassigning to the exporter, unknown@bugzilla.gnome.org. Reassigning to the default owner of the component, nautilus-maint@bugzilla.gnome.org.
Created attachment 22179 [details] contains 3 diffs
the zip contains a fix that works for me There is only one call to nautilus_launch_show_file. It is made from src/file-manager/fm-directory-view.c. I've replaced it with a call to nautilus_launch_application, which is the way all other calls with this scope are made. nautilus_launch_show_file was defined in libnautilus-private/nautilus-program-choosing.h and implemented in libnautilus-private/nautilus-program-choosing.c If no plugins use it, probably should be deprecated or simply removed. I've made diffs for each file.
well, using nautilus_launch_show_file introduces another bug. I fixed it some how, but there other bugs. The problem seems to be with handling x-natilus-desktop:///trash:. This redirection and probably any such redirection is not handled well by the vfs layer or maybe by nautilus.
After having reproduced this on a folder in 2.4, I was unable to get the folder to open with the normal Nautilus Icon Viewer. It could only be opened with an external application. Setting Status -> New, Severity -> Major, Version -> 2.4.x, and adding PATCH and GNOMEVER2.4 to Keywords.
This patch isn't relevant anymore with the new MIME system in 2.8 is it?
Is this bug present in >= 2.8 ? Thanks
nautilus 2.8/2.9 doesn't allow to set an handler to a folder (#151747), and the mimesystem has totally changed since 2.4, this bug doesn't apply to the current version I'm closing it. Feel free to reopen if you still think that's an issue.