Maybe this will help to recognize and direct my RW2 files to thumbnailer "processor". So - where does update-mime-database look when it (re)creates /usr/share/mime directory structure?
there exist many xyz.xml files under /usr/share/mime/image/ directory, all of them containing line plus sophisticated info about every filetype (name in 50 languages, sort of content info)
adding ~/mime.types file containing new definitions doesn't change anythingĦ. mime type for files are recognized by some else method than /etc/mime.types - this file doesn't contain image/x-panasonic-rw2 or image/x-panasonic-raw2 (and most others, still recognized and reported by FM)ĥ. both programs used as thumbnailers (ufraw, dcraw) can process all RAW types including my RW2 manually from terminal, but excluding RW2 when invoked by file managerĤ. file manager (both Nemo and Thunar) recognizes MIME type of my RW2 (reports image/x-panasonic-rw2 type)ģ. file manager (both Nemo and Thunar) recognizes RAW files from other cameras and choses right thumbnailer script to process themĢ. So I tried to search what is wrong in system. Still doesn't work for RW2 files, works for others. MimeType=image/x-3fr image/x-panasonic-raw2 image/x-panasonic-rw2 I deleted and made /usr/share/thumbnailers/dcraw.thumbnailer containing: So it works - extracts internal JPG file from RAW.
For CR2 it gives full sensor resolution JPG. Manually in terminal, dcraw -e -c myphoto.RW2 > myphoto.jpg gives a JPG file containig 1920x1440 image. Althrough ufraw is no more available in apt-get in Mint 20, ufraw-thumbnailer works In 20 Xfce didn't even show one thumbnail for RW2. Then stopped showing RW2 thumbnails, still showing CR2 and others. To be precise - it worked in 19.3 but only 2, maybe 3 days. Still works for all files, excluding RW2. Did nemo -q, deleted all thumbnail caches. Nemo says "image/x-panasonic-rw2" (not image/x-panasonic-raw2) so I added image/x-panasonic-rw2 at the end of mime types list in thumbnailer file. I checked mime type by "right click > Properties". Works for all RAW files (Canon, Nikon, Sony). MimeType=image/x-3fr image/x-adobe-dng image/x-arw image/x-bay image/x-canon-cr2 image/x-canon-crw image/x-cap image/x-cr2 image/x-crw image/x-dcr image/x-dcraw image/x-dcs image/x-dng image/x-drf image/x-eip image/x-erf image/x-fff image/x-fuji-raf image/x-iiq image/x-k25 image/x-kdc image/x-mef image/x-minolta-mrw image/x-mos image/x-mrw image/x-nef image/x-nikon-nef image/x-nrw image/x-olympus-orf image/x-orf image/x-panasonic-raw image/x-pef image/x-pentax-pef image/x-ptx image/x-pxn image/x-r3d image/x-raf image/x-raw image/x-rw2 image/x-rwl image/x-rwz image/x-sigma-x3f image/x-sony-arw image/x-sony-sr2 image/x-sony-srf image/x-sr2 image/x-srf image/x-x3f image/x-panasonic-raw2 Exec=/usr/bin/ufraw-batch -embedded-image -out-type=png -size=%s %u -overwrite -silent -output=%o