From dfcb0a9629c5624847d7f852188254b322e7de82 Mon Sep 17 00:00:00 2001 From: Brandon Bayer Date: Mon, 29 Aug 2016 17:05:00 -0500 Subject: [PATCH] fix: errors and crashes on Linux because shellArgs being mutated (#662) Fixes #661 --- app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/index.js b/app/index.js index 1976a667..dc141b5d 100644 --- a/app/index.js +++ b/app/index.js @@ -146,7 +146,7 @@ app.on('ready', () => { rpc.on('new', ({ rows = 40, cols = 100, cwd = process.env.HOME }) => { const shell = cfg.shell; - const shellArgs = cfg.shellArgs; + const shellArgs = Array.from(cfg.shellArgs); initSession({ rows, cols, cwd, shell, shellArgs }, (uid, session) => { sessions.set(uid, session);