We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c39d6a5 commit ee16c63Copy full SHA for ee16c63
plugins/plugin-codeflare/src/controller/respawn.ts
@@ -80,7 +80,13 @@ async function guidebookStore() {
80
export default async function respawnCommand(cmdline: string | string[]) {
81
return {
82
argv: [
83
- encodeComponent(process.argv[0]),
+ // re: replace, in UI mode on macOS, the argv[0] points to the renderer executable
84
+ encodeComponent(
85
+ process.argv[0].replace(
86
+ /\/Frameworks\/(\w+) Helper \(Renderer\)\.app\/Contents\/MacOS\/\w+ Helper \(Renderer\)$/,
87
+ "/MacOS/$1"
88
+ )
89
+ ),
90
encodeComponent((await headlessRoot()) + "/codeflare.min.js"),
91
"--",
92
...(typeof cmdline === "string" ? [cmdline] : cmdline),
0 commit comments