fix(linux): 支持自动检测 ~/.xwechat/xwechat_files 微信数据目录#99
Open
henryczq wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
本 PR 为 Linux 环境下的微信数据目录自动检测补充了一个路径:
~/.xwechat/xwechat_files当前 Linux 微信 4.x 可能通过类似下面的参数启动:
--wechat-files-path=/home/<user>/.xwechat/xwechat_files但原来的自动检测逻辑只会扫描:
~/Documents/xwechat_files~/.local/share/weixin/data/db_storage因此在部分 Ubuntu/Linux 环境下执行
sudo wx init会提示无法自动检测微信数据目录。
验证结果
已在 Ubuntu 环境验证:
sudo wx init --force可以正确检测到:~/.xwechat/xwechat_files/<wxid>/db_storagewx sessions可以正常读取最近会话cargo test通过:107 passed