A working launch options example from me messing around with RED4ext on Cyberpunk for Mac:
/bin/sh -c "open --env DYLD_INSERT_LIBRARIES=\"$STEAM_DYLD_INSERT_LIBRARIES:@executable_path/../../../red4ext/RED4ext.dylib:@executable_path/../../../red4ext/FridaGadget.dylib\" --env DYLD_FORCE_FLAT_NAMESPACE=1 -nW %command% --args -fullscreen"
Which is roughly equivalent to what you would expect from writing: DYLD_INSERT_LIBRARIES=red4ext/RED4ext.dylib:red4ext/FridaGadget.dylib %command% -fullscreen (which definitely does not work)
Here's a breakdown of all the incantations:
- The first argument has to be a full path to an executable, so we use
/bin/shand pass everything else as one big string with-c %command%is automatically enclosed in single quotes ('), so the string we pass to-chas to be in double quotes ("), and any double quotes inside it have to be escaped (\")