Usually, I have Mailspring set to launch on startup in the background using mailspring --background. But in v1.17.4, I get this message and cannot get it to start in the background:
The --background flag has no effect under Wayland, where an activation context is required and windows must be shown immediately.
Hey! Mailspring 1.18.0 was just released and should address this issue. The --background flag now works on Wayland — it briefly shows the main window and then hides it, which is the best we can do given Wayland’s requirement that windows have an activation context and be shown immediately (#2623).