Open wyattbiker opened 2 weeks ago
This is expected behavior, macOS GUI apps do not use shell environment by default, and it's impossible to change PATH for the GUI apps (globally, app itself can change it), sandboxed apps distributed via App Store can't use it at all.
See https://github.com/godotengine/godot/pull/81266 (which implement workaround).
Will this be backported you think?
Tested versions
v4.3.stable.official [77dcf97d8]
System information
Mac OS X Catalina 10.15
Issue description
On Mac OSX, the Environment PATH is different when retrieving it using gdscript than from the BASH command line. This cause confusion if you are for example running
OS.execute("which",["awk"], value, true, true)
to locate an application to execute. This issue doesn't appear on Linux using same commands.To verify I copied a test version of
/usr/bin/awk
to/usr/local/bin/awk
and then used BASH commands followed by gdscript.First tested from command line: MacOSX Bash commands to determine shell and path
Now test with Godot same commands using gdscript. PATH comes up different, even though the shell is BASH.
Steps to reproduce
see above
Minimal reproduction project (MRP)
na