Special mime types for directories.
guillaume at maunakeatech.com
Tue May 13 07:56:17 PDT 2008
I am working on port to linux of a medical imaging application and I
have a mime type problem.
The application generates movies stored as a lot of files and meta-data
in a directory. The whole movie is the directory (with all it's files)
and has the .mkt extention.
I would like to be able to display on nautilus, or an other file
browser, a thumbnail instead of the folder icon when displaying the
I wrote a simple thumbnailer that takes 2 parameters: input and output
file and create an image based on the directory content.
I have 2 problems:
1 - Retrieving the correct mime type for the directory (it should be
2 - Telling some file explorer application to generate the thumbnail.
What I did:
<sub-class-of type="inode/directory" />
<glob pattern="*.mkt" />
<comment>Mkt bundle movie</comment>
and did a update-mime-database ~/.local/share/mime
I wrote a simple program to display the mime type of a file using the
testing a file named "file.mkt" provides the application/mkt-bundle
Testing a directory "dir.mkt" provide also the same type.
I would like only the directory to provide this type. How can I achieve
Does anybody knows if there is a file browser that will handle this
properly and will allow me ty configure my thumbnailer ?
Thank you for your time.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/xdg/attachments/20080513/058cabe4/attachment.pgp
More information about the xdg