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 324185 - public guess_mime_from_filename API
public guess_mime_from_filename API
Status: RESOLVED FIXED
Product: gnome-vfs
Classification: Deprecated
Component: MIME and file/program mapping
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2005-12-15 15:23 UTC by Paolo Borelli
Modified: 2006-01-16 14:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paolo Borelli 2005-12-15 15:23:34 UTC
there are many functions (some of them redundant) in gnome vfs that allow to
guess the mime type from a filename even when the corresponding file doesn't
exist, for instance gnome_vfs_mime_type_from_name_or_default.

However all of there functions are only available to the vfs methods and not to
normal users of the library.

We really need such api so that when 'gedit foo.c' is launched from the terminal
(foo.c doesn't exist) the proper highlighting is used. On the first save the
proper sniffing is then done.
Comment 1 Christian Kellner 2006-01-16 14:57:48 UTC
Fixed in cvs HEAD.