Skip to content

Commit 38c4455

Browse files
committed
fix for linux
1 parent 34c15d0 commit 38c4455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ class JupyterServer {
163163

164164
this._startServer = new Promise<JupyterServer.IInfo>((resolve, reject) => {
165165
const home = process.env.JLAB_DESKTOP_HOME || app.getPath('home');
166+
const isWin = process.platform === 'win32';
166167
const pythonPath = this._info.environment.path;
167168
if (!fs.existsSync(pythonPath)) {
168169
dialog.showMessageBox({message: `Environment not found at: ${pythonPath}`, type: 'error' });
@@ -175,7 +176,7 @@ class JupyterServer {
175176

176177
this._nbServer = execFile(launchScriptPath, {
177178
cwd: home,
178-
shell: true,
179+
shell: isWin ? 'cmd.exe' : '/bin/bash',
179180
env: {
180181
...process.env,
181182
JUPYTER_TOKEN: appConfig.token,

0 commit comments

Comments
 (0)