Repository navigation
fix(electron): let Linux users turn off the GPU and choose the window platform - #5646
kovtcharov-amd merged 3 commits into
Conversation
… platform The desktop app aborted at launch on GPU stacks whose Chromium GPU process crashes (Fedora Kinoite with ROCm), and the only fix was retyping --disable-gpu every time. Setting GAIA_DISABLE_GPU=1 (or true/yes) now turns GPU acceleration off on every launch, on any platform. The app also forced ozone-platform-hint=auto, which Electron 38+ already defaults to; dropping it leaves the window platform to Electron and to the user's --ozone-platform=x11, the knob that fixed missing window decorations on GNOME Wayland. ELECTRON_OZONE_PLATFORM_HINT was removed in Electron 38, so the troubleshooting guide points users at the command-line flag. The startup switches move into services/chromium-switches.cjs so they are unit-tested without launching Electron. Closes amd#999 Refs amd#1068
…Wayland switches Users who installed the .deb launch gaia-desktop, not the AppImage, so the entry now gives both forms.
|
Verdict: Approve Linux users who hit a GPU crash at launch now have a supported fix: start the desktop app with The two hardware checks in the test plan (the Kinoite/ROCm crash and GNOME Wayland) are still open. Because the GPU switch is opt-in, merging without them won't change behaviour for anyone who doesn't set it. Real-world evidenceN/A: no evidence bundle was produced for this run. The PR description reports launching the pinned Electron 44 with the new module, and 🔍 Technical detailsIssues found 🟢 Advice to edit the 🟢 The PR description slightly misstates why the ozone hint was removed. In Chromium, an explicit Checked:
Strengths
|
…deb upgrades Edits to the .deb's desktop entry in /usr/share/applications are lost on every upgrade, so the entry now tells users to edit a copy in ~/.local/share/applications instead.
|
Thanks. The entry now tells .deb users to copy the desktop entry to |
On some Linux setups the Agent UI desktop app either crashes at GPU startup (#999, Fedora Kinoite with ROCm on RDNA4) or opens without window decorations under GNOME Wayland (#1068). Both reporters found a Chromium flag that fixes it, but GAIA gave them no supported way to set it. In #999 we promised a
GAIA_DISABLE_GPUswitch that never shipped. NowGAIA_DISABLE_GPU=1turns the GPU off, and the troubleshooting page shows how to pass--ozone-platform=x11in a way that sticks. The forcedozone-platform-hint=autois dropped as dead code: Electron 38+ already defaults to it, and a user's--ozone-platformflag wins over it either way. The Linux troubleshooting page shows both, for the AppImage and the .deb.Closes #999
Refs #1068 (needs a re-test on Wayland: #5312 since made the Linux window frameless, so the original symptom may have changed)
Test plan
tests/electron/chromium-switches.test.cjs(16 tests): per-platform defaults, whichGAIA_DISABLE_GPUvalues count as on, no ozone switch added, and switches applied beforeapp.whenReady()disable-gpuis applied only whenGAIA_DISABLE_GPU=1util/check_doc_links.pyreports all links validGAIA_DISABLE_GPU=1launches the AppImage without the SIGTRAP--ozone-platform=x11