Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wine PATH through command line and not persistent

Tags:

path

wine

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

like image 556
André Puel Avatar asked Aug 30 '11 21:08

André Puel


People also ask

What is the wine command?

Wine is a compatibility layer capable of running Microsoft Windows applications on Unix-like operating systems. Programs running in Wine act as native programs would, without the performance/memory penalties of an emulator. Warning: Wine is not isolated from your system.


1 Answers

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
like image 136
André Puel Avatar answered Dec 09 '22 19:12

André Puel