Ken*_*Ken 3 libreoffice thumbnails 16.04
我想删除包含一些敏感信息的 Libre Office 电子表格的缩略图。我已经加密了电子表格并删除了原件,但 LO 继续显示它的缩略图。
LibreOffice 文件的缩略图存储在
$HOME/.config/libreoffice/4/user/registrymodifications.xcu
这个文件是一个 xml 文件,你可以通过运行看到
file $HOME/.config/libreoffice/4/user/registrymodifications.xcu
/home/dkb/.config/libreoffice/4/user/registrymodifications.xcu: XML 1.0 document, ASCII text, with very long lines
Run Code Online (Sandbox Code Playgroud)
如果您使用合适的文本编辑器打开该文件,并搜索“缩略图”,您会看到如下内容:
<prop oor:name="Thumbnail" oor:op="fuse"><value>iVBORw0KGgoAA .... IAAAAASUVORK5CYII=</value></prop>
Run Code Online (Sandbox Code Playgroud)
对于每个缩略图。
删除所有现有缩略图的一种方法是关闭 LibreOffice (soffice.bin) 的所有实例,然后在registrymodifications.xcu知道您可能还会丢失其他自定义设置和设置的情况下将其删除。下次您启动 LibreOffice 套件的任何应用程序时,将重新创建此文件,现在更小了。
另一种方法,如果您喜欢冒险并且我还没有尝试过,那么直接编辑registrymodifications.xcu以删除缩略图位而不破坏 xml 结构。
为了防止首先创建缩略图,请参阅https://ask.libreoffice.org/en/question/52288/registrymodificationxcu-exclude-thumbnail-data/