From b40d422654f891894fa213e6b9153783ef2b14d9 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Mon, 27 Jul 2026 13:22:30 +0000 Subject: [PATCH] Clear the install marker on elevation failures too for PR #7490 The code 2 exit keeps the marker for the elevated run that follows, but every terminal failure of that run, a denied prompt or a failed apt-get included, returned without clearing it. That pinned a working install into repair the same way a failed update did. finish_elevation_failure is the one path all of them take. --- studio/src-tauri/src/install.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/studio/src-tauri/src/install.rs b/studio/src-tauri/src/install.rs index 27996d30a9..dc0d7ac24d 100644 --- a/studio/src-tauri/src/install.rs +++ b/studio/src-tauri/src/install.rs @@ -914,6 +914,9 @@ fn finish_elevation_failure( exit_status: Option, message: String, ) { + // Terminal, like a cancelled prompt: the run the code 2 exit left the + // marker for is not happening. + clear_install_marker_best_effort(); if let Some(attempt) = attempt { diagnostics::finish_attempt( diagnostics,