True, not "Linux" but "GNU/Linux" as a generic name for the entire system, more specifically those systems with GNOME or KDE.

Of course CLI tools doesn't need and can't use MIME, that is only for graphical desktop interface apps.

The database is for "looking up the correct MIME type..."

The user preferences (such as a user's preferred application for handling files of a particular type) are stored in the home dir of the user.

"There is no information in /usr/share/mime about which application is able to open a resource (file) with any given MIME type."

Not entirely true, from the link you provided:

"It may be used to store static information, such as that files of a certain type may be viewed with a particular application."

Regards, Stefan


In reply to Re^3: Cross-platform open document by stefbv
in thread Cross-platform open document by llancet

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.