Plymouth seamless transition
Since Phosh works so well without a display manager, it'd be great if it handled seamless transition from Plymouth splash screen, like gdm currently does.
The code to do so doesn't look too burdensome: https://gitlab.gnome.org/GNOME/gdm/-/blob/ca7d30c3/daemon/gdm-manager.c#L145-209
My understand of the process, in a nutshell:
-
plymouth
bin is the "API", gdm is simply shelling out to it -
plymouth deactivate
tells plymouthd to stop yeeting pixels to the display. So phoc would want to invoke this once it's ready to take over the display and start doing ... whatever it is wayland compositors do. -
plymouth quit ---retain-splash
tells plymouthd to actually go away (exit process) for real. The retain-splash means it doesn't try to clean its mess off the screen. I guess Phosh would call this right before it calls into the maingtk_main
event loop.
The end result should look nice: if the user has a Plymouth splash running, it won't stop animating until phoc is ready to composite cat pictures, and then the switch from splash -> lockscreen would be "seamless".