Fix Linux Ozone browser startup - #110
Draft
akshar2324 wants to merge 1 commit into
Draft
Conversation
akshar2324
force-pushed
the
codex/fix-linux-ozone-startup
branch
from
August 2, 2026 12:59
dfa0b18 to
3808347
Compare
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
--ozone-platform=x11in the browser process argumentsapp.commandLinealigned for GPU/renderer children and diagnosticsOPENPETS_ALLOW_WAYLAND=1as the explicit native-Wayland escape hatchRoot cause
Appending the Ozone switch from
main.tsoccurs before Electron is ready, but the browser process has already started. On affected Wayland systems this can leave the browser using Wayland while child processes receive X11, causing every OpenPets window to remain invisible.The replacement process now starts with X11 in its actual argv, so browser, GPU, and renderer processes select the same backend.
Fixes #108.
Validation
pnpm --filter @open-pets/desktop test:buildnode apps/desktop/.test-dist/tests/linux-ozone-startup.test.jspnpm --filter @open-pets/desktop typecheckpnpm --filter @open-pets/desktop buildgit diff --checkUbuntu GUI validation remains pending because the external volume containing the configured VMware VM is not currently mounted. The broad packaging contract also encounters an unrelated existing Windows mouse-forwarding assertion on current
main.