Wine PATH through command line and not persistent

梦想的初衷 提交于 2021-02-07 06:56:18

问题


I know I can change my wine PATH through regedit, but I actually need to change the PATH just for a single run.

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...


回答1:


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.

Example:

$ 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


来源:https://stackoverflow.com/questions/7249791/wine-path-through-command-line-and-not-persistent

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!