diff --git a/packages/protocol/src/node/server.ts b/packages/protocol/src/node/server.ts index 812ebf0c..62fd7354 100644 --- a/packages/protocol/src/node/server.ts +++ b/packages/protocol/src/node/server.ts @@ -85,9 +85,7 @@ export class Server { throw new Error(`unrecognized platform "${platform}"`); } initMsg.setOperatingSystem(operatingSystem); - if (global.process.env.SHELL) { - initMsg.setShell(global.process.env.SHELL); - } + initMsg.setShell(os.userInfo().shell || global.process.env.SHELL); const srvMsg = new ServerMessage(); srvMsg.setInit(initMsg); connection.send(srvMsg.serializeBinary());