https://bugs.winehq.org/show_bug.cgi?id=56112
Bug ID: 56112 Summary: Feature request: let wine first cd to the directory with the .exe when a full path to a .exe is specified Product: Wine Version: 9.0-rc3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: cedric.dewijs@eclipso.eu Distribution: ---
Running programs in this way is unsupported: $ wine ~/path/to/appname.exe
The user must first cd into the directory of the program and then run the program: $ cd ~/path/to/ && wine appname.exe
It would be nice if wine would itself cd into the correct directory when a full path is detected, so users don't have to bother with first going into the correct directory.
See this bug for more discussion on the subject: https://bugs.winehq.org/show_bug.cgi?id=56088
https://bugs.winehq.org/show_bug.cgi?id=56112
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de
--- Comment #1 from Fabian Maurer dark.shadow4@web.de --- Not sure this would be a sensible default, Windows behaves the exact same regarding working directory. How exactly would you want this to work? Opt-in or opt-out?
https://bugs.winehq.org/show_bug.cgi?id=56112
--- Comment #2 from Cedric cedric.dewijs@eclipso.eu --- Avoiding the question of opt-in or opt-out, maybe it's a good first step to print a warning if a user starts a program with the full path like this:
wine ~/path/to/appname.exe
"Starting programs with their full path is unsupported. If the program fails, first cd to ~/path/to and then run wine appname.exe"
https://bugs.winehq.org/show_bug.cgi?id=56112
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED
--- Comment #3 from Dmitry Timoshkov dmitry@baikal.ru --- (In reply to Cedric from comment #2)
Avoiding the question of opt-in or opt-out, maybe it's a good first step to print a warning if a user starts a program with the full path like this:
wine ~/path/to/appname.exe
"Starting programs with their full path is unsupported. If the program fails, first cd to ~/path/to and then run wine appname.exe"
Starting a program using full path is perfectly supported and works as intended. As Fabian mentioned Windows behaviour is exactly the same regarding current working directory. It's the user's responsibility to actually understand the consequences. Wine User's Guide even has an answer to this question: https://wiki.winehq.org/Wine_User%27s_Guide#How_to_run_Windows_programs_from...
https://bugs.winehq.org/show_bug.cgi?id=56112
Olivier F. R. Dierick o.dierick@piezo-forte.be changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |o.dierick@piezo-forte.be
--- Comment #4 from Olivier F. R. Dierick o.dierick@piezo-forte.be --- Hello,
It actually depends on how the application interact with the filesystem, and the user has to find out by trial and error, preferably starting with the recommended way (as it's what work most of the time).
Regards.
https://bugs.winehq.org/show_bug.cgi?id=56112
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Austin English austinenglish@gmail.com --- Closing.