![Calligra 单词:~/.kde/share/config/wordsrc 中使用了什么语法?](https://linux22.com/image/1149549/Calligra%20%E5%8D%95%E8%AF%8D%EF%BC%9A~%2F.kde%2Fshare%2Fconfig%2Fwordsrc%20%E4%B8%AD%E4%BD%BF%E7%94%A8%E4%BA%86%E4%BB%80%E4%B9%88%E8%AF%AD%E6%B3%95%EF%BC%9F.png)
我有 Calligra Words,版本 2.9.7,使用来自 Kubuntu 16.04 标准仓库的 KDE 开发平台 4.14.22。
我正在查看~/.kde/share/config/wordsrc
并看到了这样的条目:
ko_geometry=AdnQywABAAD////6AAAANQAABRAAAALLAAAAAAAAAFoAAAUKAAACxQAAAAAAAA==
下一行与上面代码中的ko_windowstate
内容相关且更长但类似。ko_geometry=
ko_windowstate=AAAA/wAAAAD9AAAAAgAAAAEAAAULAAACKvwCAAAADPsAAAAOAFQAbwBvAGwAQgBvAHgBAAAAGAAAAGMAAAAAAAAAAPsAAAAgAHMAaABhAHIAZQBkAHQAbwBvAGwAZABvAGMAawBlAHIAAAAAQgAAAGIAAABiAQAAA/sAAAAqAFMAaABhAHAAZQBDAG8AbABsAGUAYwB0AGkAbwBuAEQAbwBjAGsAZQByAAAAAEIAAAJ0AAAAHAAAABz7AAAAIgBTAHQAcgBvAGsAZQAgAFAAcgBvAHAAZQByAHQAaQBlAHMAAAAAAP////8AAAAAAAAAAPsAAAAWAFMAdAB5AGwAZQBEAG8AYwBrAGUAcgAAAAKSAAAAcAAAAAAAAAAA+wAAACAAUwBoAGEAcABlACAAUAByAG8AcABlAHIAdABpAGUAcwAAAAAA/////wAAABwBAAAD+wAAACIAUwBoAGEAZABvAHcAIABQAHIAbwBwAGUAcgB0AGkAZQBzAAAAAAD/////AAAAAAAAAAD7AAAAFABTAHQAYQB0AGkAcwB0AGkAYwBzAAAAAAD/////AAAA7gEAAAP7AAAABgBSAGQAZgAAAAAA/////wAAAGgBAAAD+wAAABQATgBhAHYAaQBnAGEAdABpAG8AbgAAAAAA/////wAAAGgBAAAD+wAAACgAUwBuAGEAcABHAHUAaQBkAGUAIABQAHIAbwBwAGUAcgB0AGkAZQBzAAAAAAD/////AAAAHAEAAAP7AAAADgBNAG8AZABlAEIAbwB4AQAAAEIAAAIqAAAAqQAIABsAAAACAAAAAAAAAAD8AQAAAAH7AAAAGgBUAG8AbwBsAEIAYQByAEQAbwBjAGsAZQByAAAAAAD/////AAAAAAAAAAAAAAAAAAACBQAAAAQAAAAEAAAACAAAAAj8AAAAAQAAAAIAAAABAAAAFgBtAGEAaQBuAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAAAAAAA==
这些字符串里包含什么样的信息?
答案1
KDE 配置文件
先前的 AskUubntu:KDE 应用程序中的配置文件
现在 KDE Frameworks KConfig:https://api.kde.org/frameworks/kconfig/html/
Calligra 2.9.7
...calligra-2.9.7/libs/main/KoMainWindow.cpp 第 444 行:
KConfigGroup cfg(KGlobal::config(), "MainWindow");
cfg.writeEntry("ko_geometry", saveGeometry().toBase64());
cfg.writeEntry("ko_windowstate", saveState().toBase64());
Calligra 正在将窗口几何形状和窗口状态(打开了哪些小部件以及它们在哪里等等)以 base 64 格式保存到 rc 文件中:https://en.wikipedia.org/wiki/Base64。
解码您的 ko_windowstate 片段 -https://www.base64decode.org: