Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ const isRoot =

if (isRoot) {
app.commandLine.appendSwitch('no-sandbox')
// On some Linux desktops (e.g. Linux Mint / Cinnamon) the software
// compositor still fails to paint when running as root — the window
// loads (cursor reacts) but remains grey. Disabling GPU compositing
// forces a fallback path that reliably renders.
if (process.platform === 'linux') {
app.commandLine.appendSwitch('disable-gpu-compositing')
app.commandLine.appendSwitch('in-process-gpu')
}
}

// ─── CLI / Daemon mode ───────────────────────────────────────
Expand Down
2 changes: 1 addition & 1 deletion src/main/ipc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function registerCleanerIpc(getWindow: WindowGetter): void {
// (same pattern as the macOS osascript path).
const sq = (s: string) => `'${s.replace(/'/g, "'\\''")}'`
const parts: string[] = []
for (const key of ['DISPLAY', 'XAUTHORITY', 'WAYLAND_DISPLAY', 'XDG_RUNTIME_DIR', 'HOME']) {
for (const key of ['DISPLAY', 'XAUTHORITY', 'WAYLAND_DISPLAY', 'XDG_RUNTIME_DIR', 'HOME', 'DBUS_SESSION_BUS_ADDRESS']) {
if (process.env[key]) parts.push(`${key}=${sq(process.env[key])}`)
}
parts.push(sq(exePath), '--no-sandbox', `--kudu-data-dir=${sq(userDataDir)}`)
Expand Down
Loading