typical Nautilus strace output contains access("/home/chris/.local/share/mime/x-directory/normal.xml", F_OK) = -1 ENOENT (No such file or directory) access("/opt/gnome214/share/mime/x-directory/normal.xml", F_OK) = -1 ENOENT (No such file or directory) access("/usr/share/mime/x-directory/normal.xml", F_OK) = -1 ENOENT (No such file or directory) quiet often. Obviously, the XDG mime code tries to lookup the description for those. We seem to still rely on the "x-directory/*" MIME type family internally. gnome-mime-data/gnome-vfs.keys.in contains definitions for x-directory/search _description=Search results default_action_type=component short_list_component_iids=OAFIID:Nautilus_File_Manager_Search_List_View ... x-directory/smb-share _description=Samba share default_action_type=component short_list_component_iids=OAFIID:Nautilus_File_Manager_Icon_View,OAFIID:Nautilus_File_Manager_List_View,OAFIID:Nautilus_Audio_View ... x-directory/vfolder-desktop _description=Folder default_action_type=component short_list_component_iids=OAFIID:Nautilus_File_Manager_Icon_View,OAFIID:Nautilus_File_Manager_List_View,OAFIID:Nautilus_Audio_View ... x-directory/webdav _description=Web folder default_action_type=component short_list_component_iids=OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1,OAFIID:Nautilus_File_Manager_Icon_View,OAFIID:Nautilus_File_Manager_List_View,OAFIID:Nautilus_Audio_View,OAFIID:Nautilus_Text_View ... # x-directory/webdav-prefer-directory is returned for DAV directories # that contain the nautilus-treat-as-directory property. This is used # in the Eazel storage service to default to the icon view, while still # defaulting to a web view for normal web sites that happen to support DAV. # x-directory/webdav-prefer-directory _description=Web folder default_action_type=component short_list_component_iids=OAFIID:Nautilus_File_Manager_Icon_View,OAFIID:nautilus_mozilla_content_view:1ee70717-57bf-4079-aae5-922abdd576b1,OAFIID:Nautilus_File_Manager_List_View,OAFIID:Nautilus_Audio_View,OAFIID:Nautilus_Text_View ... "x-directory/smb-share" is used in the SMB method "x-directory/webdav", in the http neon module, as well as in the to-be-killed non-neon http module, which also refers to "x-directory/webdav-prefer-directory". Also, libgnomevfs has code like /* We use a different folder type than the freedesktop spec */ if (strcmp (mime_type, "x-directory/normal") == 0) { mime_type = "inode/directory"; } which is quiet horrible! Couldn't we remove support for all of these, making "x-directory/directory" an alias for "inode/directory" in shared-mime-info, to retain backwards compatibility? Maybe we can also use a better construct than "x-directory/gnome-default-handler". Ideas, comments? -- Christian Neumair <chris gnome-de org>
Attachment:
signature.asc
Description: This is a digitally signed message part