From 0b36e2a8333b95f6af9a7375288c80ce30c25b50 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Tue, 30 Sep 2025 07:45:10 +0200 Subject: [PATCH] lock: do not autostart after crash --- .config/quickshell/ii/GlobalStates.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/ii/GlobalStates.qml b/.config/quickshell/ii/GlobalStates.qml index c9cd602d6..077a810bc 100644 --- a/.config/quickshell/ii/GlobalStates.qml +++ b/.config/quickshell/ii/GlobalStates.qml @@ -30,7 +30,15 @@ Singleton { Connections { target: Config function onReadyChanged() { - if (Config.ready && Config.options.lock.launchOnStartup) { + if (Config.options.lock.launchOnStartup && Config.ready && Persistent.ready && Persistent.isNewHyprlandInstance) { + GlobalStates.screenLocked = true; + } + } + } + Connections { + target: Persistent + function onReadyChanged() { + if (Config.options.lock.launchOnStartup && Config.ready && Persistent.ready && Persistent.isNewHyprlandInstance) { GlobalStates.screenLocked = true; } }