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
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
I was there. xdgmime should be easy to use. Did you try it?
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
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.
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.
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