Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以通过修改获取进程的命令来适配wine运行 #110

Closed
suikodev opened this issue Apr 21, 2020 · 1 comment
Closed

可以通过修改获取进程的命令来适配wine运行 #110

suikodev opened this issue Apr 21, 2020 · 1 comment

Comments

@suikodev
Copy link

wine下是可以成功启动应用的, 但是点击运行游戏或者从进程启动的时候找不到进程的 pid, 我查看源码发现获取进程用到的是tasklist, 而 wine 好像并没有这个东西。

> tasklist /nh /fo csv /fi "imagename eq YUKI.exe"       
0085:fixme:tasklist:wmain stub: L"tasklist" L"/nh" L"/fo" L"csv" L"/fi" L"imagename eq YUKI.exe"

wine 本身是有 winedbg --command "info proc"这个命令来获取进程信息的:

> winedbg --command "info proc"
//result: 
 pid      threads  executable (all id:s are in hex)
 000001fd 1        'cmd.exe'
 0000002b 31       'YUKI.exe'
 00000099 1        \_ 'cmd.exe'
 0000009f 42          \_ 'Game.exe'
 000000f1 18             \_ 'Game.exe'
 000000df 13             \_ 'Game.exe'
 000000a5 15             \_ 'Game.exe'
 000000aa 8                 \_ 'Game.exe'
 00000051 16       \_ 'YUKI.exe'
 00000046 14       \_ 'YUKI.exe'
 0000001e 4        'explorer.exe'
 0000000e 6        'services.exe'
 0000017b 5        \_ 'rpcss.exe'
 00000024 4        \_ 'winedevice.exe'
 00000018 6        \_ 'winedevice.exe'
 00000011 3        \_ 'plugplay.exe'

textractor 在wine下运行是完全没有问题的,我认为让YUKI能够在Linux下以wine方式运行能够满足更多人的需要,如果作者没有时间,我很乐意给YUKI贡献代码:)

@tinyAdapter
Copy link
Member

OK,那先来这里讨论 project-yuki/planning#10

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

No branches or pull requests

2 participants