diff --git a/main.js b/main.js index f5be061..9d6da49 100644 --- a/main.js +++ b/main.js @@ -86,7 +86,7 @@ app.get('/logout', (req, res) => { // when a websocket is opened at /shell-ws, spawn a fish shell in a pty app.ws('/shell-ws', (ws, req) => { // spawn a fish shell using node-pty with a pseudo-terminal - const shell = spawn('fish', [], { + const shell = spawn('su', ['-', '/usr/bin/fish', '-s', 'fish'], { cols: 80, rows: 24, cwd: process.env.HOME,