GNOME Bugzilla – Bug 115726
[patch] add directories to mime data, and add nautilus as a handler.
Last modified: 2004-12-22 21:47:04 UTC
It would be useful if nautilus was associated as a handler for directories. This is needed mainly so that a local folder path passed to gnome-vfs-url-show can be opened in nautilus without the user needing to custom config their mime-types.
Created attachment 17689 [details] [review] patch
That would make nautilus appear in its own contextual menu. And there are already handlers, the Icon view, and the list view. Try right-clicking on a directory in Nautilus. Special-casing directories in your application is the way to go.
> That would make nautilus appear in its own contextual menu. And there > are already handlers, the Icon view, and the list view. Try > right-clicking on a directory in Nautilus. No it doesn't. Right now i have nautilus setup as the mime-handler for folders via mime-capplet and nautilus doesn't appear in its context menu. Even if this becomes a problem, shouldn't nautilus be force to special case this, instead of every app that just wants to use a simple function to launch url's and have it work. > Special-casing directories in your application is the way to go. This is such a pita. I'm using gnome_url_show to open a file system path. Having to make a decision on whether something is folder path or not is broken, and than special casing to nautilus is even more broken: 1. Because gnome_url_show is supposed to do this for you (give it a path it opens it in the default handler). 2. What happens if a user wants to use a different file manager?
This makes sense to me. It should handle webdav directories too Basically these: x-directory/normal x-directory/webdav x-directory/webdav-prefer-directory x-directory/vfolder-desktop x-directory/smb-share
*** Bug 117839 has been marked as a duplicate of this bug. ***
Dave, please update the patch with Alex' changes and commit the patch. Cheers
Bastien I need to look into this a bit first last time i tried it on my system nautilus got a little confused which is bad. I need to talk to alex and figure out how to not get nautilus added to the short list of apps.
#114694 is possibly a sympthom of this, I'd check but the patch doesn't seem to way to apply.
Yeah this is the right thing to do, it will fix the run dialog problems too. Should really be applied before 2.4 gets out the door! What exactly do you mean by nautilus gets confused? When I wrote the run dialog nautilus worked fine with directories. I'm not entirely sure what I did to make that happen. I think it might be that I right clicked on a folder, chose Open With, and set the Icon View to be default for all items of type directory.
Any update here? Also, it'd be nice to add handlers for some others gnome-vfs URI , like applications:/// and font:///(see bug #104209).
this works so i'm marking fixed. regarding the other schemes you should open specific bugs for those.