https://bugs.winehq.org/show_bug.cgi?id=50345
Bug ID: 50345 Summary: `wine` always loads executable from $WINEPREFIX/windows instead of given path if filenames match Product: Wine Version: 5.22 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: wineserver Assignee: wine-bugs@winehq.org Reporter: lunarlambda@gmail.com Distribution: ---
I was working on a modification to Wine Notepad, and ran into the following oddity when trying to test my changes:
`wine ./notepad.exe` does not run the correct executable. Instead of the newly built executable in the current directory, it ran `$WINEPREFIX/windows/notepad.exe` instead.
Even when specifying the absolute path, `$PWD/notepad.exe`, it still ran the wrong one.
The only way to run the correct executable was to rename it.
Furthermore, I observed the following:
$ wine ./notepad.exe <wrong notepad opens> $ rm ./notepad.exe $ wine ./notepad.exe wine: cannot find L"./notepad.exe" $