Skip to content

fix: add Weixin.exe to Windows process name detection#3

Open
aviky-2 wants to merge 1 commit into
xiangruiai:mainfrom
aviky-2:fix/windows-weixin-process-name
Open

fix: add Weixin.exe to Windows process name detection#3
aviky-2 wants to merge 1 commit into
xiangruiai:mainfrom
aviky-2:fix/windows-weixin-process-name

Conversation

@aviky-2

@aviky-2 aviky-2 commented May 18, 2026

Copy link
Copy Markdown

Summary

Chinese version of WeChat (微信) uses Weixin.exe as the main process name, not WeChat.exe. This causes vchat setup to fail with "微信主进程没在运行" on Chinese Windows installations.

Fix

Changed find_keys_windows.py:94 from exact match to tuple match:

# Before
if entry.szExeFile.lower() == "wechat.exe":

# After  
if entry.szExeFile.lower() in ("wechat.exe", "weixin.exe"):

Verification

  • vchat setup now correctly detects Weixin.exe on Chinese Windows
  • Both WeChat.exe (international version) and Weixin.exe (Chinese version) are supported

Closes #2

Chinese version of WeChat uses Weixin.exe as the main process name,
not WeChat.exe. This caused `vchat setup` to report "微信主进程没在运行"
on Chinese Windows installations.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: find_wechat_pid 只匹配 WeChat.exe,遗漏 Weixin.exe(中文版微信)

1 participant