
Since the screenshot UI cannot open in GDM or on the lock screen, it seems that simply closing it on any session mode update is sufficient, without adding extra variables. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4996 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2149>