答案1
这对我来说就是正确的解决方案。首先,制作 pdf 缩略图的任务由 evince-thumbnailer 执行。因此我在这里检查了我的 evince-thumbnailer 脚本:/usr/share/thumbnailers/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-bzpostsc ript;application/x-gzpostscript;image/x-eps;image/x-bzeps;image/x-gzeps;appl ication/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;ap plication/x-cb7;application/x-ext-cbr;application/x-ext-cbz;application/x-ex t-cb7;application/oxps;application/vnd.ms-xpsdocument
我在另一台机器上检查了一下,发现它没有被注释掉。所以,解决办法就是取消注释第三行:
Exec=evince-thumbnailer -s %s %u %o
哇哦,pdf 文件现在可以显示缩略图了!
也许最后,这个脚本让我的电脑挂了,所以我注释掉了那行。