Archived
1
0

Use default user shell

This commit is contained in:
Kyle Carberry
2019-02-27 12:43:00 -06:00
parent f421de29d0
commit 20c0fc4c52

View File

@ -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());