http://bugs.winehq.org/show_bug.cgi?id=9945
Summary: Add environment variable to allow launchers to change "working directory" for Windows applications Product: Wine Version: 0.9.46. Platform: PC-x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-binary AssignedTo: wine-bugs@winehq.org ReportedBy: 07067514@brookes.ac.uk
A small number of programs make use of the "working directory" to find files (example: MAME32++ uses it to find its configuration files) and WINE offers no convenient way of changing this short of writing a script to move to the folder with cd and launch the application, which is unpleasant and frankly unnecessary.
I suggest a new environment variable, WINEWORKINGDIR, which stores this "working directory" value (the default is the current working directory of the terminal when WINE is run). This would allow launchers for WINE (e.g. in the main menu) to change this, avoiding the need for cumbersome scripts.