r/linuxquestions • u/Sciman1011 • 7d ago
Support Nautilus not recognizing Krita files as the correct MIME type
I use Krita as an art program, and noticed that in Nautilus, I don't get any thumbnails. I have a thumbnailer set up for the 'application/x-krita' MIME type, so I did some looking and I think I know the issue.
When I run the command file --mime-type file.kra, it tells me the file is type 'application/zip'. When I run xdg-mime query filetype file.kra , it tells me it's 'application/x-krita'. Krita files are just zip files under the hood, so I assume whatever the xdg-mime command is doing is different than the file command.
My hunch at this point is Nautilus is using the wrong method to determine the mime type, assuming the file is a zip and not generating a thumbnail. When I look at the same files in Dolphin, it correctly identifies the mime type and generates thumbnails, which can be seen in Nautilus.
Aside from just switching my default file manager, is there a way I can get my system to consistently recognize krita files as the right mime type? Or, is it possible to set a thumbnailer to work off of the file extension, instead?