答案1
配置为缩略图制作者您的文件管理器位于
/usr/share/thumbnailers
二进制文件位于
/usr/bin
例如:
cat evince.thumbnailer
[Thumbnailer Entry]
TryExec=evince-thumbnailer
Exec=evince-thumbnailer -s %s %u %o
MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;application/x-xzpdf;application/x-ext-pdf;application/postscript;application/x-bzpostscript;application/x-gzpostscript;image/x-eps;image/x-bzeps;image/x-gzeps;application/x-ext-ps;application/x-ext-eps;application/x-dvi;application/x-bzdvi;application/x-gzdvi;application/x-ext-dvi;image/vnd.djvu;application/x-ext-djv;application/x-ext-djvu;image/tiff;application/x-cbr;application/x-cbz;application/x-cb7;application/x-cbt;application/x-ext-cbr;application/x-ext-cbz;application/x-ext-cb7;application/x-ext-cbt;application/oxps;application/vnd.ms-xpsdocument
确定 mimetype 的缩略图配置
text/x-python
通过
grep -r 'text/x-python' /usr/share/thumbnailers
或者仅使用缩略图配置的文件名
grep -ro 'text/x-python' /usr/share/thumbnailers | awk -F: '{print $1}'
通过以下方式禁用缩略图配置
grep -ro 'text/x-python' /usr/share/thumbnailers | awk -F: '{system("sudo chmod o-r " $1)}'
通过启用(现在您需要
sudo
)sudo grep -ro 'text/x-python' /usr/share/thumbnailers | awk -F: '{system("sudo chmod o+r " $1)}'
答案2
啊哈,看看这个:Ubuntu 文件管理器中源代码文件的图标不正确
你试过了吗 sudo rm -rf ~/.thumbnails/* ~/.cache/thumbnails/*
这些文件是自动生成的。如果上述方法无效,请发布此问题的答案。