signalapp / Signal-Desktop

A private messenger for Windows, macOS, and Linux.
https://signal.org/download
GNU Affero General Public License v3.0
14.68k stars 2.68k forks source link

fix for window not being shown with wayland in same cases by switching to the 'did-finish-load' event instead of 'ready-to-show' #7078

Open alangecker opened 1 week ago

alangecker commented 1 week ago

First time contributor checklist:

Contributor checklist:

related issues:

Description

on some setups signal is never shown due to electrons ready-to-show event is not firing.

I've found that people use did-finish-load instead due to (probably) this bug (https://github.com/electron/electron/issues/25253#issuecomment-691624779).

After a deep rabbit hole into electron and the chromium source code I could not determine why this event is not fired, but both events should be more or less equal from their timing in our case, so it is a workaround, but can be used permanently.

https://www.electronjs.org/docs/latest/api/browser-window

Using the ready-to-show event

This event is usually emitted after the did-finish-load event, but for pages with many remote resources, it may be emitted before the did-finish-load event.

setup with which I could reproduce the issue and verify the fix

mbienkowsk commented 1 week ago

would love to see this merged, currently can't launch the app without xwayland where it's pixelated