From 9758f412b59cd8b107496f2c8b6ea6a6b3a56346 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sun, 15 Dec 2024 12:20:49 -0500 Subject: [PATCH] te --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,