Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix: spawn whisper with raw path and shell:false

PurpleDoubleDed3849246e55
diff --git a/vite.config.ts b/vite.config.ts
index 905fc376..9ff07ae7 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -1067,10 +1067,12 @@ function comfyLauncher(): Plugin {
)
// Use async spawn instead of execSync to avoid blocking the server
+ // For spawn without shell, we need the raw unquoted path
+ const rawPythonPath = pythonBin.replace(/^"|"$/g, '')
const runWhisper = (scriptPath: string, timeoutMs: number): Promise<string> => {
return new Promise((resolve, reject) => {
- const proc = spawn(pythonBin, [scriptPath], {
- shell: true,
+ const proc = spawn(rawPythonPath, [scriptPath], {
+ shell: false,
stdio: ['ignore', 'pipe', 'pipe'],
})
let stdout = ''