From f3eb01642fce2510a8086c5e4ddaaa78c47f834c Mon Sep 17 00:00:00 2001 From: Joan Torres Date: Fri, 3 Dec 2021 01:14:16 +0100 Subject: [PATCH] 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: --- js/ui/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/main.js b/js/ui/main.js index ab97c6cc3..19735ccc0 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -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;