Use default user shell
This commit is contained in:
parent
f421de29d0
commit
20c0fc4c52
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue