From 3152ff842bb238351077add921569d9a6b69bff5 Mon Sep 17 00:00:00 2001 From: "Michael N. Lipp" Date: Thu, 27 Feb 2025 22:55:50 +0100 Subject: [PATCH] Allow console take over. --- .../vmoperator/runner/qemu/DisplayController.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/org.jdrupes.vmoperator.runner.qemu/src/org/jdrupes/vmoperator/runner/qemu/DisplayController.java b/org.jdrupes.vmoperator.runner.qemu/src/org/jdrupes/vmoperator/runner/qemu/DisplayController.java index 6a3f783..479e2b1 100644 --- a/org.jdrupes.vmoperator.runner.qemu/src/org/jdrupes/vmoperator/runner/qemu/DisplayController.java +++ b/org.jdrupes.vmoperator.runner.qemu/src/org/jdrupes/vmoperator/runner/qemu/DisplayController.java @@ -35,7 +35,6 @@ import org.jdrupes.vmoperator.runner.qemu.events.MonitorCommand; import org.jdrupes.vmoperator.runner.qemu.events.RunnerStateChange.RunState; import org.jdrupes.vmoperator.runner.qemu.events.VmopAgentConnected; import org.jdrupes.vmoperator.runner.qemu.events.VmopAgentLogIn; -import org.jdrupes.vmoperator.runner.qemu.events.VmopAgentLogOut; import org.jdrupes.vmoperator.runner.qemu.events.VmopAgentLoggedIn; import org.jgrapes.core.Channel; import org.jgrapes.core.Component; @@ -53,7 +52,6 @@ public class DisplayController extends Component { private String protocol; private final Path configDir; private boolean vmopAgentConnected; - private boolean userLoginRequested; /** * Instantiates a new Display controller. @@ -112,13 +110,6 @@ public class DisplayController extends Component { var userLoginConfigured = readFromFile(DATA_DISPLAY_LOGIN) .map(Boolean::parseBoolean).orElse(false); if (!userLoginConfigured) { - // Check if it was configured before and there may thus be an - // active auto login - if (userLoginRequested && vmopAgentConnected) { - // Make sure to log out - fire(new VmopAgentLogOut()); - } - userLoginRequested = false; configurePassword(); return; } @@ -126,7 +117,6 @@ public class DisplayController extends Component { // With user login configured, we have to make sure that the // user is logged in before we set the password and thus allow // access to the display. - userLoginRequested = true; if (!vmopAgentConnected) { if (passwordChange) { logger.warning(() -> "Request for user login before "