
Now gnome-shell can know if it is on headless mode (depends on https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2130) and not terminate a headless remote session when the session is locked. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2057>