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
    Mar 2006
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Arrow Re: MIME database and QMimedata

    well wysota, if possible...do me a favour....pls visit the link in my prev reply, and see if you can figure out how to make it work

    Thanks

    Nupul

  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

    I was there. xdgmime should be easy to use. Did you try it?

  3. #3
    Join Date
    Mar 2006
    Posts
    172
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Unhappy Re: MIME database and QMimedata

    I just couldn't figure out how to use it....as the link to me to an ftp site...just listing the source files....I even downloaded the libsharedmime... but it just installed a lib and no where is it mentioned how to query it!!! maybe you could help

    Thanks nupul

  4. #4
    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

    xdgmime looks better. There is an example in its sources how to use it. It should be enough to include its files directly into your project.

  5. #5
    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.

  6. #6
    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.