fix(ui): paths on screen show the home folder as %USERPROFILE% on Windows, and tooltips hide it too #242

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:shown-path-windows into main 2026-11-21 21:22:07 +00:00
Owner

On Windows the launcher showed paths with the account's name in them (C:\Users\<name>\…), and on both systems the hover tooltips showed the raw path, so a screenshot or a shared screen could give away someone's name.

  • ShownPath.Of now shows the home folder as %USERPROFILE% on Windows (%USERPROFILE%\Games\Longshot), as it already showed ~ on Linux. Case-insensitive; a drive's root is never taken for it.
  • ShownPath.Typed reads %USERPROFILE% back, so the Settings boxes accept the path as shown, as they do ~.
  • The tooltips that showed a path whole (builds folder, install folder, FSR library, work folder, the delete dialog's folder, Hookshot import, the files step) go through ShownPath.Of too. WorkFull stays whole for the folder picker; the work folder's tooltip binds to Work.
  • The Storage page already used ShownPath.Of everywhere, so it is covered by the Windows change.

No screenshots: the screenshot harness runs on Linux, where the text doesn't change.

Tests: the app builds with no warnings. tests/test_launcher_core.py fails at the "older v3.0.3 and an old release candidate" check, the same as on main without this change. Tooling's test_release.py has 3 failures about release tags and version bumps, which this change doesn't touch. Not tried on Windows.

🤖 Generated with Claude Code

On Windows the launcher showed paths with the account's name in them (`C:\Users\<name>\…`), and on both systems the hover tooltips showed the raw path, so a screenshot or a shared screen could give away someone's name. - `ShownPath.Of` now shows the home folder as `%USERPROFILE%` on Windows (`%USERPROFILE%\Games\Longshot`), as it already showed `~` on Linux. Case-insensitive; a drive's root is never taken for it. - `ShownPath.Typed` reads `%USERPROFILE%` back, so the Settings boxes accept the path as shown, as they do `~`. - The tooltips that showed a path whole (builds folder, install folder, FSR library, work folder, the delete dialog's folder, Hookshot import, the files step) go through `ShownPath.Of` too. `WorkFull` stays whole for the folder picker; the work folder's tooltip binds to `Work`. - The Storage page already used `ShownPath.Of` everywhere, so it is covered by the Windows change. No screenshots: the screenshot harness runs on Linux, where the text doesn't change. Tests: the app builds with no warnings. `tests/test_launcher_core.py` fails at the "older v3.0.3 and an old release candidate" check, the same as on `main` without this change. Tooling's `test_release.py` has 3 failures about release tags and version bumps, which this change doesn't touch. Not tried on Windows. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(ui): paths on screen show the home folder as %USERPROFILE% on Windows, and tooltips hide it too
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 5s
0391b0c83f
Linux already showed the home folder as ~; Windows showed C:\Users\<name>, and the
tooltips meant to show a path whole showed the account name on both. A path typed
with %USERPROFILE% is read back as the home folder, as ~ is on Linux.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member

Possibly related, for context:

  • PR #164 fix(privacy): one shared rule keeps the user's name out of the launcher's log and every report — Earlier privacy work redacts paths in logs and reports; this extends masking to UI display.
Possibly related, for context: - PR #164 fix(privacy): one shared rule keeps the user's name out of the launcher's log and every report — Earlier privacy work redacts paths in logs and reports; this extends masking to UI display.
HumanBean deleted branch shown-path-windows 2026-11-21 21:22:07 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!242
No description provided.