https://bugs.winehq.org/show_bug.cgi?id=52786
Bug ID: 52786 Summary: "wine cmd.exe /c [any command which outputs text]" returns zero length text Product: Wine Version: 7.5 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: cmd Assignee: wine-bugs@winehq.org Reporter: bill2allison@yahoo.co.uk Distribution: ---
Works correctly only when executed from a terminal (xterm etc) Fails when wine is invoked (directly or by another program such as winetricks) from desktop menu or launcher or a .desktop file.
MY ENVIRONMENT -------------- OpenSUSE Tumbleweed KDE/Plasma Wine 7.5
TO REPRODUCE ------------
1) From the desktop launcher run
wine cmd.exe /c echo 'hello' > ~/test.txt
Each time it is run, the test.txt timestamp is updated but the file remains empty
2) From the desktop launcher run
winetricks --gui
Displays info then error message 'wine cmd.exe /c echo '%AppData%' returned empty string, error message "" '
3) Issue test 1 above in xterm or similar then test.txt contains "hello" 4) Issue test 2 above in xterm or similar then winetricks starts and runs normally
WORKAROUND ----------
Include terminal=true in affected .desktop files and menu configs or start those programs from within a terminal
https://bugs.winehq.org/show_bug.cgi?id=52786
Bill Allison bill2allison@yahoo.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |SUSE Keywords| |regression
https://bugs.winehq.org/show_bug.cgi?id=52786
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr See Also| |https://bugs.winehq.org/sho | |w_bug.cgi?id=52771
--- Comment #1 from Eric Pouech eric.pouech@orange.fr --- likely a duplicate of https://bugs.winehq.org/show_bug.cgi?id=52771
https://bugs.winehq.org/show_bug.cgi?id=52786
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Eric Pouech eric.pouech@orange.fr --- likely a dup of https://bugs.winehq.org/show_bug.cgi?id=52771
*** This bug has been marked as a duplicate of bug 52771 ***
https://bugs.winehq.org/show_bug.cgi?id=52786
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #3 from Alistair Leslie-Hughes leslie_alistair@hotmail.com --- Closing duplicate.