Results 1 to 13 of 13

Thread: MIME database and QMimedata

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Stockholm
    Posts
    5
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: MIME database and QMimedata

    I use the file command to determine file types, it has a huge database.

    Usage: file [OPTION]... [FILE]...

    Pardon me, I don't know which package installs this binary, it is very useful nevertheless.
    You probably already have it.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: MIME database and QMimedata

    The problem with file is that it returns a non-uniform and non-parsable data. Its output is readable for a human but not for a computer.

    EDIT: I see it has a -i option which outputs mime-type instead of human readable strings. That's more interesting.

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
  •  
Qt is a trademark of The Qt Company.