From 93a91b823526491a110e418bb5e0b4d58ac166ef Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Mon, 27 Apr 2026 13:03:50 +0200 Subject: [PATCH] docs(desktop): clarify recordedExecPath null guard in startup re-apply pseudo-code --- docs/systems/desktop.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/systems/desktop.md b/docs/systems/desktop.md index b0da0526..398b86fa 100644 --- a/docs/systems/desktop.md +++ b/docs/systems/desktop.md @@ -128,9 +128,10 @@ The unconditional startup re-apply was removed (it was overwriting user changes ``` if linux AND $APPIMAGE is set: - read ~/.config/autostart/backspace.desktop → recordedExecPath - if saved.openAtLogin AND $APPIMAGE != recordedExecPath: + read ~/.config/autostart/backspace.desktop → recordedExecPath (null if file missing) + if saved.openAtLogin AND recordedExecPath != null AND $APPIMAGE != recordedExecPath: re-apply to refresh the autostart entry's Exec= path + (a missing .desktop file is treated as user-disabled — never recreated here) ``` This keeps AppImage updates working (the AppImage moved to a new path → autostart entry needs the new path) without overriding any user-level OS state on Windows or macOS.