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 71094 - gnome-mime-data should use the freedesktop MIME standard
gnome-mime-data should use the freedesktop MIME standard
Status: RESOLVED INVALID
Product: gnome-mime-data
Classification: Deprecated
Component: Default
1.0.0
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Mime Data Maintainers
GNOME Mime Data Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-02-10 14:11 UTC by W. Michael Petullo
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description W. Michael Petullo 2002-02-10 14:11:42 UTC
I recently upgraded to the newest version of gnome-mime-data.

Gnome-mime-data includes some mime type databases which seem redundant.

/etc/gnome-vfs-mime-magic should be integrated with file's magic database
(/usr/share/magic on my system).

/usr/share/mime-info/gnome-vfs.mime should be integrated with /etc/mime.types.

/etc/mailcap should also be used by GNOME.

etc.

If gnome-mime-data was integrated with the more traditional databases such
as /etc/mime.types and /usr/share/magic, non-GNOME applications, such as
file and mutt, could take advantage of GNOME database updates.
Comment 1 Seth Nickell 2002-02-11 11:21:32 UTC
They're welcome to use GnomeVFS to get this information. Basically the
file formats do not contain the same information as GnomeVFS (note
that we use mime types), and moreover the location, and even the
format, of these files varies from system to system.
Comment 2 W. Michael Petullo 2002-03-31 14:24:36 UTC
Perhaps FHS or LSB should add mention of MIME related databases.  This
work should really be shared with KDE, command line tools, etc.  

It seems silly to maintain separate databases for GNOME and command
line tools.  Perhaps the database file formats for GnomeVFS could be
re-thought so that new non-compatible information is stored in
seperate files.
Comment 3 Seth Nickell 2002-04-01 20:06:12 UTC
Eventually we plan to use .desktop files for MIME data, which will be
compatible with KDE. This will be even less compatible with file, of
course, but compatibility with KDE is much more important.
Comment 4 W. Michael Petullo 2002-04-12 20:28:55 UTC
The folks at freedesktop.org have been discussing this issue.  After
some discussion on the XDG mailing list,
https://listman.redhat.com/mailman/listinfo/xdg-list, a draft
MIME-info database standard was published.  The subject of the mail
thread was "Central MIME info database."  The standard is available at
http://www.ecs.soton.ac.uk/~tal00r/info.html.  Please take a look --
it is a start.
Comment 5 Seth Nickell 2002-05-08 17:33:00 UTC
Retitling bug.
Comment 6 W. Michael Petullo 2004-02-19 22:29:07 UTC
A lot of progress seems to be made on this.  Recent gnome-vfs packages
seem to use freedesktop.org's /usr/share/mime/magic.  However,
gnome-mime-data still seems to provide gnome-vfs-mime-magic.  This
seems redundant.  What is gnome-vfs-mime-magic still around for?

Also, the contents of /usr/share/application-registry/ and
/usr/share/applications seem quite redundant.  /usr/share/applications
is from the freedesktop.org's desktop entry specification.  Is GNOME
in the middle of transitioning from one of these systems to the other?
 The only non-redundant information I see is the the former provides
support for "can_open_multiple_files" and "supported_uri_schemes" but
the freedesktop.org's specification does not.

Finally, gnome-vfs still seems to get its filename extension->mime
type mapping from /usr/share/mime-info/*.mime.  Are there any plans to
transition to using freedesktop.org's /usr/share/mime/globs?
Comment 7 Bastien Nocera 2004-05-03 10:26:49 UTC
This is ancient.
gnome-mime-data is gnome-mime-data, the whole mime system needs to be changed in
gnome-vfs, and the xdg-mime stuff, not in gnome-mime-data.

If you really care about using the xdg-mime stuff, file a bug against gnome-vfs,
gnome-mime-data is only some data files...