Supporting Zypak requires splitting the wrapper into two parts: "inner" (editor-wrapper.sh) and "outer" (editor.sh).
The reason for this is that we need to setup cli args only when the user launches the app manually, but not when Electron reexecs itself.
editor-wrapper.sh is responsible for setting up the environment; it's passed to the app as CHROME_WRAPPER and is always used, even on app reexec
editor.sh serves as an entrypoint, responsible for handling first-launch readmes and adding default cli args
Supporting Zypak requires splitting the wrapper into two parts: "inner" (
editor-wrapper.sh
) and "outer" (editor.sh
). The reason for this is that we need to setup cli args only when the user launches the app manually, but not when Electron reexecs itself.editor-wrapper.sh
is responsible for setting up the environment; it's passed to the app asCHROME_WRAPPER
and is always used, even on app reexeceditor.sh
serves as an entrypoint, responsible for handling first-launch readmes and adding default cli args