diff --git a/src/main/cli.ts b/src/main/cli.ts index e09bbf0c..abcf06d6 100644 --- a/src/main/cli.ts +++ b/src/main/cli.ts @@ -457,13 +457,18 @@ export async function runCommandInEnvironment( env: process.env }) : spawn('bash', ['-c', commandScript], { - stdio: 'inherit', env: { ...process.env, BASH_SILENCE_DEPRECATION_WARNING: '1' } }); + if (shell.stdout) { + shell.stdout.on('data', chunk => { + console.debug('>', Buffer.from(chunk).toString()); + }); + } + shell.on('close', code => { if (code !== 0) { console.error('Shell exit with code:', code); diff --git a/src/main/utils.ts b/src/main/utils.ts index 593759c2..70b59e64 100644 --- a/src/main/utils.ts +++ b/src/main/utils.ts @@ -514,10 +514,7 @@ export function createUnsignScriptInEnv(envPath: string): string { export function getLogFilePath(processType: 'main' | 'renderer' = 'main') { switch (process.platform) { case 'win32': - return path.join( - getUserDataDir(), - `\\jupyterlab-desktop\\logs\\${processType}.log` - ); + return path.join(getUserDataDir(), `\\logs\\${processType}.log`); case 'darwin': return path.join( getUserHomeDir(),