From 8dcb8e4539795cc1aada92cba72fd8487acb61ae Mon Sep 17 00:00:00 2001 From: James Beedle Date: Wed, 26 Aug 2026 06:37:09 -0500 Subject: [PATCH] update.bat: resolve the real Desktop for the icon tip (OneDrive redirect) The "want a desktop Update icon?" tip checked %USERPROFILE%\Desktop, which misses machines where OneDrive redirects the Desktop (the icon exists at %USERPROFILE%\OneDrive\Desktop, so the tip fires even though the user is running it from that very icon). Resolve the actual Desktop folder via [Environment]::GetFolderPath('Desktop') and fall back to the classic path if the query fails. Co-Authored-By: Claude Fable 5 --- update.bat | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/update.bat b/update.bat index d9f7cfc..ddf67d9 100644 --- a/update.bat +++ b/update.bat @@ -55,7 +55,12 @@ for %%r in (fullstack-agent ai-memory-vault backtalk barehands ai-visualizer) do if exist "%%r\.git\" call :one "%%r" ) echo update complete. -if not exist "%USERPROFILE%\Desktop\Update *" echo Tip: want a desktop Update icon that does this on a double-click? Open your agent and ask for one. +rem Resolve the real Desktop folder (OneDrive redirection moves it off +rem %USERPROFILE%\Desktop); fall back to the classic path if the query fails. +set "DESKTOP_DIR=" +for /f "delims=" %%d in ('powershell -NoProfile -Command "[Environment]::GetFolderPath('Desktop')" 2^>nul') do set "DESKTOP_DIR=%%d" +if not defined DESKTOP_DIR set "DESKTOP_DIR=%USERPROFILE%\Desktop" +if not exist "%DESKTOP_DIR%\Update *" echo Tip: want a desktop Update icon that does this on a double-click? Open your agent and ask for one. exit /b 0 :one