Wine PATH 通过命令行而不是持久的 [英] Wine PATH through command line and not persistent
问题描述
我知道我可以通过 regedit 更改我的 wine PATH,但实际上我只需要为一次运行更改 PATH.
I know I can change my wine PATH through regedit, but I actually need to change the PATH just for a single run.
例如,我的软件名为 frontend.exe,这取决于 example/mylib.dll,我需要使用 example 调用 frontend.exe/ 在 PATH 上.但是我可能不会在注册表中设置它,因为此配置仅适用于此应用程序,而不适用于每个 wine 应用程序...
For example, I have my software called frontend.exe, this depends on example/mylib.dll, I need to invoke frontend.exe with example/ on PATH. But I may not set this on the registry be cause this configuration is just for this application, not for every wine application...
推荐答案
Wine 支持 WINEPATH 变量.如果在您的 Unix Shell 中导出 WINEPATH,一旦您启动 wine,它将使用它来填充 wine 中的 PATH 环境变量.
Wine supports the WINEPATH variable. If, in your Unix Shell, you export WINEPATH, once you launch wine it will use this to populate the PATH environment variable inside wine.
示例:
$ WINEPATH=anything\\it//willNotBeParsed wine cmd
Wine CMD Version 5.1.2600 (1.6.2)
C:\>echo %PATH%
anything\it//willNotBeParsed;C:\windows\system32;C:\windows;C:\windows\system32\wbem
这篇关于Wine PATH 通过命令行而不是持久的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!