7

我知道我可以通过 regedit 更改我的 wine PATH,但我实际上只需要更改一次运行的 PATH。

例如,我的软件名为frontend.exe,这取决于example/mylib.dll,我需要在 PATH 上使用example/调用 frontend.exe。但我可能不会在注册表上设置这个,因为这个配置只适用于这个应用程序,而不是每个 wine 应用程序......

4

1 回答 1

13

Wine 支持 WINEPATH 变量。如果在 Unix Shell 中导出 WINEPATH,一旦启动 wine,它将使用它来填充 wine 中的 PATH 环境变量。

例子:

$ 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
于 2015-10-19T17:34:17.963 回答