[Bug 49545] Current working directory reset to "/" executing a winegcc/wineg++ compiled program

WineHQ Bugzilla wine-bugs at winehq.org
Thu Jul 9 04:06:09 CDT 2020


https://bugs.winehq.org/show_bug.cgi?id=49545

--- Comment #5 from Marcos Gutiérrez Batz <sacrom at gmail.com> ---
I'm one of the developers of a CLI/GUI aplication.

We have a programing language and generate a binary intermediate file with our
compiler. We can then execute the intermediate file with an interpreter in
diferent platforms (semthing like Java).

We have a text based interpreter that has always worked in Windows (DOS box)/
Unix and Linux.

We implemented a Graphical interpreter based in the Win32 API (Windows). So now
we are using a WineLib compiled interpreter to execute the graphical
interpreter in Linux. This interpreter uses the normal Linux code for threads,
files sytem handling... and just using the the Windows code for the Graphical
part.

Having said that we execute the application like that:

$ app.exe intermedite_filename

app.exe has to open the intermediate file, but as the current directory has
been reset the file can't be opened (the full path has to be specified)

One workaround is to modify the app.exe wrapper and add "/start" option, but
every time we compile the program the wrapper need to be modified.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.


More information about the wine-bugs mailing list