Skip to content

fix: Add fallback revealer for Linux - #3090

Open
jacobgkau wants to merge 1 commit into
standardnotes:mainfrom
jacobgkau:wayland-launch-fix
Open

jacobgkau wants to merge 1 commit into
standardnotes:mainfrom
jacobgkau:wayland-launch-fix

Conversation

@jacobgkau

Copy link
Copy Markdown

Fixes standardnotes/forum#4225. This is a workaround for electron/electron#48859 (dozens of apps have applied similar workarounds).

On Wayland, the ready-to-show trigger apparently may not fire until the first frame is drawn, which doesn't happen until the window's actually shown. This means the window's never shown. The workaround is to use did-finish-load as an alternative. The version of the workaround I used only applies it on Linux, and moves the window.show() into a new function to ensure it only happens once even if both triggers were to fire (e.g. on X11 where this isn't an issue, or in the future if this gets fixed in Electron).

I compiled this from source and confirmed it gets the window to show as expected in the COSMIC desktop environment.

@jacobgkau
jacobgkau force-pushed the wayland-launch-fix branch 2 times, most recently from 7761f86 to 8ba782f Compare December 3, 2026 06:30
@jacobgkau

Copy link
Copy Markdown
Author

Sorry for the force-push noise, I had to get signature verification working since this repo requires it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Window doesn't show on COSMIC Comp unless forced to use Xwayland

1 participant