https://bugs.winehq.org/show_bug.cgi?id=51702
Bug ID: 51702 Summary: AFxW: the working directory of launched Unix application isn't set Product: Wine Version: 6.15 Hardware: x86-64 URL: https://web.archive.org/web/20210811072930if_/http://a kt.d.dooo.jp/lzh/afxw32_165.zip OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: sagawa.aki+winebugs@gmail.com Distribution: Ubuntu
Created attachment 70575 --> https://bugs.winehq.org/attachment.cgi?id=70575 Configuration file for AFxW to launch Unix application
AFxW[1], aka あふw in Japanese, is an ultra-low functionality two-pane file manager. With Wine 6.13 or later, working directory of launched Unix application is always '/'. This is a regression because the working directory corresponds to AFxW's active directory pane with Wine 6.12.
@kusyan, a reporter on Twitter, wrote up the following scenario in Japanese. Thanks to the scenario, I can confirm this issue.
Steps to reproduce: 1. unzip afxw32_165.zip 2. Put attached AFXW.DEF to the directory which AFXW.EXE exists. 3. If you don't have /usr/bin/lxterminal, rewrite line 6 of AFXW.DEF to your favorite Unix terminal software (after KEY_01=). 4. LANG=ja_JP.UTF-8 wine AFXW.EXE 5. Press [F2] to launch the specified terminal software. 6. Type 'pwd' (without quotes) and [Enter] in the new terminal window.
Expected result: The terminal shows an Unix directory corresponding to AFxW's active directory pane. For instance, if your AFxW's active directory pane shows 'C:', the terminal will show '/home/yourname/.wine/drive_c'.
Actual result: The terminal shows '/'. It's not a directory corresponding to AFxW's active directory pane.
[1] http://akt.d.dooo.jp/akt_afxw.html
https://bugs.winehq.org/show_bug.cgi?id=51702
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, regression Regression SHA1| |76f949577aac88bbde4e9e7b904 | |587f5bc8c808d
--- Comment #1 from Sagawa sagawa.aki+winebugs@gmail.com --- I'm working on this issue.
git bisect shows the first bad commit is 76f949577aac88bbde4e9e7b904587f5bc8c808d. commit 76f949577aac88bbde4e9e7b904587f5bc8c808d Author: Alexandre Julliard julliard@winehq.org Date: Thu Jul 8 16:49:23 2021 +0200
ntdll: Avoid calling NtOpenFile() from the Unix side.
Signed-off-by: Alexandre Julliard julliard@winehq.org
https://bugs.winehq.org/show_bug.cgi?id=51702
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|6.15 |6.13
https://bugs.winehq.org/show_bug.cgi?id=51702
Sagawa sagawa.aki+winebugs@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |8a3e0d686ea4cbff33dc45bb63e | |71f132c22797a Resolution|--- |FIXED
--- Comment #2 from Sagawa sagawa.aki+winebugs@gmail.com --- Fixed by https://source.winehq.org/git/wine.git/commit/8a3e0d686ea4cbff33dc45bb63e71f... .
https://bugs.winehq.org/show_bug.cgi?id=51702
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.17.