mirror of
https://github.com/coder/code-server.git
synced 2024-11-27 10:09:51 +03:00
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
Block a user