gcmd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gcmd-dev] mimetypes handling - CORRECTION


From: Michael
Subject: Re: [gcmd-dev] mimetypes handling - CORRECTION
Date: Wed, 17 Jun 2015 17:45:10 +0200

> == mimeinfo.cache ==

# Comment:
#
# oops that was a copy & paste mistake !!
# The first half of the paragraph is about this file:
#

== mime.cache ==

The file resides in /usr/share/mime/ and there are several more related files, 
like "globs" and "globs2" (telling the file suffixes), or "magic" (identifying 
file headers).

I can't really tell what exactly is in there since mimeinfo.cache contains 
binary data (congrats, freedesktop!); if you need to know the specs:

http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html#idm140625828626720

and if you look into it (with strings or mcview) there's an awful lot of 
clutter, like "Windows Registry" entries or Google links...i hate this.

# Comment:
#
# Only the second half of the paragraph is about mimeinfo.cache:
#

== mimeinfo.cache ==

From archwiki: "When the program update-desktop-database is run (usually as 
root during the (un)installation of a package), it updates files called  
mimeinfo.cache in the /usr/local/share/applications and /usr/share/applications 
directories. These files keep track of which MIME-types are associated with 
which .desktop files overall. This file should not be edited by the user."
 
After inserting a new mimetype, system runs:
update-desktop-database ~/.local/share/applications
update-mime-database    ~/.local/share/mime





reply via email to

[Prev in Thread] Current Thread [Next in Thread]