Shared Mime Library

Shared Mime Library is a library for reading freedesktop.org's shared MIME database.
Download

Shared Mime Library Ranking & Summary

Advertisement

  • Rating:
  • License:
  • LGPL
  • Price:
  • FREE
  • Publisher Name:
  • Matthew Allen
  • Publisher web site:
  • http://www.memecode.com/libsharedmime.php

Shared Mime Library Tags


Shared Mime Library Description

Shared Mime Library is a library for reading freedesktop.org's shared MIME database. Shared Mime Library is my implementation for libsharedmime. It reads the Shared Mime Info database and returns you the MIME-TYPE of a file. Freedesktop make this database freely available, but they don't seem to be distributing a library to read it anymore (It's no where in their CVS that I can find). It is different to the freedesktop version in the following ways: · Licensed under LGPL instead of the GPL at aid all developers. *sigh* · Has NO dependencies. Which is an important feature in this world of tangled packages all depending on each other. · Probably not as fast? · Not as complete (yet)? To install the package firstly you need the Shared Mime data files. Which you can get from here. Then download and unpack libsharedmime and: % make# make installWhat's New in This Release:· Added code to check for a text file if the content lookup fails, if it matches it gets a 'text/plain' type. · Stopped the content lookup being performed on directories. · Fixed a bug in the magic matching code that caused valid matches to fail. This means that some files will now return the correct mime type as opposed to a default "not found" type.


Shared Mime Library Related Software