Hi, The following is only valid for gnome-vfs 2.6 and later. gnome-vfs uses shared-mime-info to get the mime type for a file (either using extension, or file content). Some helpers functions have been forgotten in the migration process though, gnome_vfs_mime_get_description for example, and gnome_vfs_mime_type_is_known for another example (I just discovered that one ;) To associate an app with your new mime type, you need to do it "the old way", I think this involves installing a .applications or .keys file Hope that helps, Christophe Le ven, 07/05/2004 à 10:55 +0000, Murray Cumming a écrit : > I'm trying to find out how an application should register MIME-types for > it's documents, and how it can register itself as a handler for those > documents. > > On the one-hand, there's the shared-mime-info database: > http://freedesktop.org/Standards/AddingMIMETutor > Adding a mime-type as decribed there causes Nautilus to recognise the > new MIME-type after a Nautilus restart. > > But at runtime, gnome_vfs_mime_type_is_known() returns false for the new > MIME-type. Is gnome-vfs actually using the shared-mime-info database? > > -- > Murray Cumming > murrayc murrayc com > www.murrayc.com > > > _______________________________________________ > gnome-vfs-list mailing list > gnome-vfs-list gnome org > http://mail.gnome.org/mailman/listinfo/gnome-vfs-list
Attachment:
signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=