#2010 | 做了缩略图 需要在系统中加两个文件。一个 mime 到 ~/.local/share/mime/packages/ <?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="image/ourpaint"> <comment>OurPaint file</comment> <icon name="image"/> <glob-deleteall/> <glob pattern="*.ourpaint"/> </mime-type> </mime-info>然后是缩略图插件文件 到 /usr/share/thumbnailers/ [Thumbnailer Entry] Version=1.0 Encoding=UTF-8 Type=X-Thumbnailer Name=OurPaint thumbnailer MimeType=image/ourpaint; Exec=/home/yiming/Documents/sync/Projects/2022/laprograms/OurPaint/build/OurPaint --thumbnail %i %o %U之后就自动建缩略图了。 | |