mirror of
https://github.com/open-webui/desktop.git
synced 2026-04-26 09:00:37 +00:00
fix(linux): use /tmp for shared memory to prevent AppImage /dev/shm crashes
Add --disable-dev-shm-usage flag on Linux so Chromium writes shared memory to /tmp instead of /dev/shm. AppImage's FUSE mount restricts child-process access to /dev/shm, causing FATAL zygote/renderer crashes with 'Unable to access(W_OK|X_OK) /dev/shm' — resulting in a blank/grey screen. Also affects .deb and Snap packages on some distros. Fixes #136
This commit is contained in:
parent
8c990befbe
commit
27a3075c3a
1 changed files with 7 additions and 0 deletions
|
|
@ -94,6 +94,13 @@ import { existsSync, writeFileSync, unlinkSync } from 'fs'
|
|||
if (process.platform === 'linux') {
|
||||
app.commandLine.appendSwitch('no-sandbox')
|
||||
|
||||
// Work around /dev/shm access failures in AppImage and other containerised
|
||||
// environments. AppImage's FUSE mount can restrict child-process access to
|
||||
// /dev/shm even when --no-sandbox is set, causing FATAL crashes in the
|
||||
// Chromium zygote/renderer with "Unable to access(W_OK|X_OK) /dev/shm".
|
||||
// This flag tells Chromium to use /tmp for shared memory instead (#136).
|
||||
app.commandLine.appendSwitch('disable-dev-shm-usage')
|
||||
|
||||
// Use the native Wayland backend when available instead of XWayland.
|
||||
// This is required for xdg-desktop-portal features like GlobalShortcuts
|
||||
// to work (the portal is enabled by default in Chromium 134+ / Electron 33+).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue