[Nautilus-list] Using the file(1) command to get information about the document format



on 10/7/01 9:15 AM, Paolo Pumilia at pumilia acm org wrote:

> Has anybody ever considered exploiting the file(1) command to get information
> about the document format?

The gnome-vfs code that determines the MIME type of a file contains a new
version of the gnome-libs MIME type code. This code was created by starting
with the file(1) command source code and data tables and adding MIME type
information. Unfortunately, it doesn't just use the file(1) command, because
that command provides only a text description of the file type and not a
MIME type.

Why did you bring this up? Is there some particular type of file that the
file(1) command gets right, but Nautilus (and therefore gnome-vfs) gets
wrong?

    -- Darin





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