main: Don't terminate remote session in headless mode

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>
This commit is contained in:
Joan Torres 2021-12-03 01:14:16 +01:00 committed by Marge Bot
parent 596432d7ea
commit f3eb01642f

View File

@ -126,7 +126,7 @@ function _sessionUpdated() {
}
let remoteAccessController = global.backend.get_remote_access_controller();
if (remoteAccessController) {
if (remoteAccessController && !global.backend.is_headless()) {
if (sessionMode.allowScreencast && _remoteAccessInhibited) {
remoteAccessController.uninhibit_remote_access();
_remoteAccessInhibited = false;