http://bugs.winehq.org/show_bug.cgi?id=7763
Summary: Loader does not set working directory to the directory program is installed in when app is executed with BINFMT_MISC Product: Wine Version: unspecified Platform: Other OS/Version: other Status: NEW Keywords: download Severity: normal Priority: P2 Component: wine-loader AssignedTo: wine-bugs@winehq.org ReportedBy: Speeddymon@gmail.com
Easy to reproduce if you have a registration code for WinRAR..
Download an eval copy of WinRAR and install it.
Insert your registration code in WinRAR to make it registered.
Make sure BINFMT_MISC is setup properly so you can run WinRAR by running ./WinRAR.exe
Make a symlink to ~/.wine/drive_c/Program\ Files\WinRAR\WinRAR.exe under your /usr/bin
CD to the WinRAR directory and type the name of your symlink to WinRAR.exe on the command line. It will open and be registered.
Exit WinRAR
CD to any other directory (~ is where I went to test)
On the command line type the name of your symlink to WinRAR.exe
It will come up and show evlauation copy even though the key has been inserted!
To get around this for now I just made a shell script in /usr/bin instead of a symlink, that does CD and then runs winrar.