fix: force GTK3 on Linux to prevent white screen on Arch/CachyOS - #44
Open
affectioned wants to merge 1 commit into
Open
fix: force GTK3 on Linux to prevent white screen on Arch/CachyOS#44affectioned wants to merge 1 commit into
affectioned wants to merge 1 commit into
Conversation
Electron's GTK4 renderer paints the window white on many Arch-based distros (CachyOS reported in #43). The main process still starts, so Discord RPC connects, but the network service crashes and the renderer never shows content. The existing Vulkan/Ozone workarounds handle Wayland but not this GTK4 rendering bug. Force GTK3 via --gtk-version=3, following the fix confirmed in Arch BBS #306492. Sandbox stays enabled. Fixes #43 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
this commit still gives me white scren when i build it D: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--gtk-version=3in the Linux startup block so Electron's GTK4 renderer doesn't paint white on Arch-based distros (CachyOS in particular).Why this fixes #43
The user's log shows Discord RPC connecting (main process is fine) followed immediately by
Network service crashed or was terminated, restarting serviceand a white window. That pattern matches the well-known GTK4 paint failure in Electron (electron/electron#33690) — the renderer never finishes its first paint, the utility processes tear down, and the window stays blank. The confirmed community fix from Arch BBS #306492 is--gtk-version=3, which is what this PR adds.Does not use
--no-sandbox,--disable-gpu, or any of the flags that would reduce security.Test plan
Fixes #43
🤖 Generated with Claude Code