Results 1 to 5 of 5

Thread: Trouble with MIME types...

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Beans
    194
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Trouble with MIME types...

    Thank you for your suggestion, but the whole purpose of having MIME types and system functions that use them (ie: file) is so that people don't have to re-invent any wheels.

    Also, I do not have every file type available and even if I did, many of them have different variations of signatures. This compilation has (in theory) already been done for me, and I would like to take advantage of the system in place, as well as learn more about it for future endeavors.

  2. #2
    Join Date
    Mar 2007
    Beans
    194
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Trouble with MIME types...

    I've noticed that Nautilus knows what type of file they are. I was using assogiate to see what my mime-type rules were, but it and nautilus seem to use something different than that which file is using.

  3. #3
    Join Date
    Mar 2007
    Beans
    194
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Trouble with MIME types...

    Well, I am now trying to figure out how to export gnome mime-types (That both Nautilus and assogiate are aware of) to a magic mime file.

    Code:
    # Magic local data for file(1) command.
    # Insert here your local magic data. Format is described in magic(5).
    #I really hope I don't have to do this...
    20      string          mp4            \b, MPEG v4 system, part 12 revision
    !:mime  video/mp4
    Code:
    file -m /etc/magic -ib VID00004.MP4 
    video/mp4; charset=binary
    I guess that's progress, but I'd really rather export gnome's list somehow.

    Any information would be greatly appreciated

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •