We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34c15d0 commit 38c4455Copy full SHA for 38c4455
src/main/server.ts
@@ -163,6 +163,7 @@ class JupyterServer {
163
164
this._startServer = new Promise<JupyterServer.IInfo>((resolve, reject) => {
165
const home = process.env.JLAB_DESKTOP_HOME || app.getPath('home');
166
+ const isWin = process.platform === 'win32';
167
const pythonPath = this._info.environment.path;
168
if (!fs.existsSync(pythonPath)) {
169
dialog.showMessageBox({message: `Environment not found at: ${pythonPath}`, type: 'error' });
@@ -175,7 +176,7 @@ class JupyterServer {
175
176
177
this._nbServer = execFile(launchScriptPath, {
178
cwd: home,
- shell: true,
179
+ shell: isWin ? 'cmd.exe' : '/bin/bash',
180
env: {
181
...process.env,
182
JUPYTER_TOKEN: appConfig.token,
0 commit comments