From 04cae9d50b8d9c95e88957a07b7c342594d489cf Mon Sep 17 00:00:00 2001 From: MiTHRAL Date: Tue, 21 Apr 2026 14:26:48 -0400 Subject: [PATCH] fix: disable GPU sandbox on Linux to prevent fatal GPU process crash Fixes freeze/crash on AMD GPUs under CachyOS. Also fixes Discord RPC branding to say Sanctum instead of Stoat. Co-Authored-By: Claude Sonnet 4.6 --- src/main.ts | 6 ++++++ src/native/discordRpc.ts | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index da1a34e..29e4df0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,6 +8,12 @@ import { initTray } from "./native/tray"; import { checkForUpdates } from "./native/updater"; import { BUILD_URL, createMainWindow, mainWindow } from "./native/window"; +// Linux GPU sandbox causes fatal crash on some AMD/CachyOS setups +if (process.platform === "linux") { + app.commandLine.appendSwitch("disable-gpu-sandbox"); + app.commandLine.appendSwitch("disable-software-rasterizer"); +} + // Squirrel-specific logic // create/remove shortcuts on Windows when installing / uninstalling // we just need to close out of the app immediately diff --git a/src/native/discordRpc.ts b/src/native/discordRpc.ts index 25b4d62..0e45307 100644 --- a/src/native/discordRpc.ts +++ b/src/native/discordRpc.ts @@ -19,10 +19,10 @@ export async function initDiscordRpc() { state: "mithraic.space", details: "Chatting with others", largeImageKey: "qr", - largeImageText: "Join Stoat!", + largeImageText: "Join Sanctum!", buttons: [ { - label: "Join Stoat", + label: "Join Sanctum", url: "https://mithraic.space/", }, ],