Skip to content

Commit e405156

Browse files
michael-borckclaude
andcommitted
Fix Linux AppImage runtime issues
- Move get-port from devDependencies to dependencies (required at runtime) - Disable sandbox in Electron BrowserWindow for Linux compatibility - Fixes 'Cannot find module get-port' error in packaged AppImage - Fixes SUID sandbox errors on Linux systems 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 6f7e3b1 commit e405156

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ async function createWindow() {
8484
nodeIntegration: false,
8585
contextIsolation: true,
8686
webSecurity: false, // Disable for development
87-
partition: 'persist:study-buddy' // Use persistent session
87+
partition: 'persist:study-buddy', // Use persistent session
88+
sandbox: false // Disable sandbox for Linux compatibility
8889
},
8990
titleBarStyle: 'default',
9091
show: true // Show immediately for debugging

package-lock.json

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@headlessui/react": "^2.1.2",
2424
"@mozilla/readability": "^0.5.0",
2525
"eventsource-parser": "^1.1.2",
26+
"get-port": "^6.1.2",
2627
"jsdom": "^24.1.0",
2728
"llama3-tokenizer-js": "^1.1.3",
2829
"next": "14.2.3",
@@ -47,7 +48,6 @@
4748
"electron-builder": "^26.0.12",
4849
"eslint": "^8",
4950
"eslint-config-next": "14.2.3",
50-
"get-port": "^6.1.2",
5151
"postcss": "^8",
5252
"prettier": "^3.2.5",
5353
"prettier-plugin-tailwindcss": "^0.6.0",

0 commit comments

Comments
 (0)