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:
parent
596432d7ea
commit
f3eb01642f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user