From a60d57ea1fc083940e3eea206c74d547e17c9bb6 Mon Sep 17 00:00:00 2001 From: Matthew Leeds Date: Fri, 24 Apr 2020 14:42:52 -0700 Subject: [PATCH] screenShield: Don't inhibit suspend during initial setup Normally, we inhibit suspend while locking the screen. But in the session mode used for gnome-initial-setup locking is not supported, so in that case this inhibit call is pointless and should be avoided. Without this patch you get the following error when you suspend and resume during initial setup: JS ERROR: Error getting systemd inhibitor: Gio.IOErrorEnum: GDBus.Error:org.freedesktop.login1.OperationInProgress: The operation inhibition has been requested for is already running _promisify/proto[asyncFunc]/ {