https://bugs.winehq.org/show_bug.cgi?id=52544
Bug ID: 52544 Summary: %__APPDIR__% and %__CD__% variables support Product: Wine Version: 7.1 Hardware: x86-64 OS: Mac OS X Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: fiendishx@gmail.com
I'm not able to easily update to 7.2 because I'm on a mac and am largely dependent on https://github.com/Gcenx/homebrew-wine but I tested myself in Wine 6.0 and had a friend using Linux test in Wine 7.1, and it seems unlikely that this was fixed in the 7.2 update.
It seems like the %__APPDIR__% and %__CD__% path variables don't work in Wine? See the "undocumented" section of https://ss64.com/nt/syntax-variables.html
Example: wine cmd.exe echo %__APPDIR__% -> just prints "%__APPDIR__%"
On my windows machine, "echo %__APPDIR__%" prints "C:\Windows\SysWOW64" or "C:\Windows\system32" depending on which version of cmd.exe (32/64 bit) was invoked.
https://bugs.winehq.org/show_bug.cgi?id=52544
temp82@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |temp82@luukku.com
--- Comment #1 from temp82@luukku.com --- Example: wine cmd.exe echo %__APPDIR__% -> just prints "%__APPDIR__%"
got same output wine 7.2 (Linux)
https://bugs.winehq.org/show_bug.cgi?id=52544
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |cmd Keywords| |download
https://bugs.winehq.org/show_bug.cgi?id=52544
--- Comment #2 from fiendishx@gmail.com --- I also want to add that, unlike %CD% which is only available in cmd.exe, %__CD__% and %__APPDIR__% are available system-wide to all applications in Windows.
https://bugs.winehq.org/show_bug.cgi?id=52544
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #3 from Eric Pouech eric.pouech@orange.fr --- confirming, those are pseudo env variables returned by GetEnvironmentVariable
https://bugs.winehq.org/show_bug.cgi?id=52544
--- Comment #4 from Eric Pouech eric.pouech@orange.fr --- Created attachment 71992 --> https://bugs.winehq.org/attachment.cgi?id=71992 wine tests for pseudo env vars
https://bugs.winehq.org/show_bug.cgi?id=52544
--- Comment #5 from Eric Pouech eric.pouech@orange.fr --- Created attachment 71993 --> https://bugs.winehq.org/attachment.cgi?id=71993 implementation of pseudo env var (__APPDIR__ and __CD__)
https://bugs.winehq.org/show_bug.cgi?id=52544
Vijay Kamuju infyquest@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |infyquest@gmail.com
--- Comment #6 from Vijay Kamuju infyquest@gmail.com --- This also needs to be part of the rewrite, its missing.