Skip to content

Commit 17e7a6f

Browse files
frenchie4111claude
andcommitted
disable Electron sandbox in npm run dev on Linux
Linux ships chrome-sandbox without SUID and AppArmor blocks the namespace sandbox by default on Ubuntu 24.04+, so dev mode fails without manual `chown root:root` + `chmod 4755` per worktree's node_modules. Set ELECTRON_DISABLE_SANDBOX=1 in the dev scripts so fresh worktrees just work. No effect on packaged builds. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0cd1c7a commit 17e7a6f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"license": "MIT",
1010
"description": "Harness - manage multiple Claude Code instances across git worktrees",
1111
"scripts": {
12-
"dev": "electron-vite dev",
13-
"dev:debug": "sh -c 'trap \"kill 0\" EXIT; tail -F \"$HOME/Library/Application Support/Harness (Dev)/debug.log\" & electron-vite dev'",
12+
"dev": "ELECTRON_DISABLE_SANDBOX=1 electron-vite dev",
13+
"dev:debug": "sh -c 'trap \"kill 0\" EXIT; tail -F \"$HOME/Library/Application Support/Harness (Dev)/debug.log\" & ELECTRON_DISABLE_SANDBOX=1 electron-vite dev'",
1414
"log": "tail -f ~/Library/Application\\ Support/harness/debug.log",
1515
"log:clear": "rm -f ~/Library/Application\\ Support/harness/debug.log",
1616
"log:perf": "tail -f ~/Library/Application\\ Support/harness/perf.log",

0 commit comments

Comments
 (0)