[MINC-development] MINC previews in nautilus.

Andrew Janke a.janke at gmail.com
Tue May 17 19:15:57 EDT 2011


> Didn't work for me. Here is my debugging info:

Thanks for the debugging Mishkin,

>>   $HOME/.local/share/mime/application
>
> I didn't have this directory. I had:

And that's because I'm a gumby and gave the wrong info for the mime
types.  Instead create this:

$ cat $HOME/.local/share/mime/packages/minc.xml
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/x-minc">
        <comment>MINC file</comment>
        <glob pattern="*.mnc"/>
    </mime-type>
</mime-info>

And then

$ update-mime-database $HOME/.local/share/mime/

This should create the file I first posted.

> opus[~]$ xdg-mime query filetype data/cube.mnc
> application/octet-stream

This means the mime stuff didn't work. It should say
application/x-minc. I am yet to figure out how to make this a global
mime type, no doubt in /usr/share/mime somewhere.

If the mime query above works, restarting nautilus (nautilus -q)
should then have things working.


a


More information about the MINC-development mailing list