in reply to Re^2: Cross-platform open document
in thread Cross-platform open document

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

Replies are listed 'Best First'.
Re^4: Cross-platform open document
by almut (Canon) on Mar 01, 2010 at 08:52 UTC
    CLI tools doesn't need and can't use MIME, that is only for graphical desktop interface apps

    My mutt (which I wouldn't consider a graphical desktop app) nicely makes use of MIME types... :)  — more specifically, it uses ~/.mailcap and/or /etc/mailcap plus ~/.mime.types and/or /etc/mime.types for viewing/handling attachments.

    </nitpick>