After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 115726 - [patch] add directories to mime data, and add nautilus as a handler.
[patch] add directories to mime data, and add nautilus as a handler.
Status: RESOLVED FIXED
Product: gnome-mime-data
Classification: Deprecated
Component: Default
2.3.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Mime Data Maintainers
GNOME Mime Data Maintainers
: 117839 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-06-22 15:25 UTC by Dave Bordoley [Not Reading Bug Mail]
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (998 bytes, patch)
2003-06-22 15:26 UTC, Dave Bordoley [Not Reading Bug Mail]
none Details | Review

Description Dave Bordoley [Not Reading Bug Mail] 2003-06-22 15:25:45 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.
Comment 1 Dave Bordoley [Not Reading Bug Mail] 2003-06-22 15:26:40 UTC
Created attachment 17689 [details] [review]
patch
Comment 2 Bastien Nocera 2003-07-09 22:29:55 UTC
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.
Comment 3 Dave Bordoley [Not Reading Bug Mail] 2003-07-10 13:47:02 UTC
> 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?
Comment 4 Alexander Larsson 2003-07-10 13:54:34 UTC
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
Comment 5 Dave Bordoley [Not Reading Bug Mail] 2003-07-19 16:14:56 UTC
*** Bug 117839 has been marked as a duplicate of this bug. ***
Comment 6 Bastien Nocera 2003-07-19 16:20:08 UTC
Dave, please update the patch with Alex' changes and commit the patch.
Cheers
Comment 7 Dave Bordoley [Not Reading Bug Mail] 2003-07-19 16:40:07 UTC
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.
Comment 8 Mark Finlay 2003-08-21 09:15:40 UTC
#114694 is possibly a sympthom of this, I'd check but the patch
doesn't seem to way to apply.
Comment 9 Frank Worsley 2003-08-26 16:27:22 UTC
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.
Comment 10 Vincent Untz 2003-10-28 16:24:48 UTC
Any update here?
Also, it'd be nice to add handlers for some others gnome-vfs URI ,
like applications:/// and font:///(see bug #104209).
Comment 11 Dave Bordoley [Not Reading Bug Mail] 2003-11-24 09:51:34 UTC
this works so i'm marking fixed. regarding the other schemes you
should open specific bugs for those.