fix(saves): Linux save backups in ~/.local/share/longshot/save-backup, beside the saves #80

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/linux-save-backup-folder into main 2026-11-15 06:23:43 +00:00
Owner

On Linux the launcher put its save backups in ~/.local/share/oot-save-backups, a folder of its own at the top of the data folder, away from everything else Longshot keeps. They now go beside the saves, in ~/.local/share/longshot/save-backup/.

What changed

  • SaveEnvironment.BackupRoot (Core/Saves.cs): Linux's default is $XDG_DATA_HOME/longshot/save-backup. Windows (%LOCALAPPDATA%\Longshot\oot-save-backups) and a portable launcher's save-backups are unchanged.
  • docs/saves.md says the new folder.

Uninstall keeps whatever BackupRoot is, so it follows the new folder with no other change.

Compatibility

Backups already made stay in ~/.local/share/oot-save-backups; nothing moves them. Longshot's scripts/longshot_saves.py still backs up to the old folder on Linux, so until it follows, the script's and the launcher's backups are in two places.

Testing

Not built or tested locally; CI compiles it and runs both tests.

🤖 Generated with Claude Code

On Linux the launcher put its save backups in `~/.local/share/oot-save-backups`, a folder of its own at the top of the data folder, away from everything else Longshot keeps. They now go beside the saves, in `~/.local/share/longshot/save-backup/`. ## What changed - `SaveEnvironment.BackupRoot` (`Core/Saves.cs`): Linux's default is `$XDG_DATA_HOME/longshot/save-backup`. Windows (`%LOCALAPPDATA%\Longshot\oot-save-backups`) and a portable launcher's `save-backups` are unchanged. - `docs/saves.md` says the new folder. Uninstall keeps whatever `BackupRoot` is, so it follows the new folder with no other change. ## Compatibility Backups already made stay in `~/.local/share/oot-save-backups`; nothing moves them. Longshot's `scripts/longshot_saves.py` still backs up to the old folder on Linux, so until it follows, the script's and the launcher's backups are in two places. ## Testing Not built or tested locally; CI compiles it and runs both tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(saves): Linux save backups in ~/.local/share/longshot/save-backup, beside the saves
All checks were successful
CI / Compile and test (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 3s
0d5cfeaf5b
Co-Authored-By: Claude Opus 5.5 <[email protected]>
HumanBean deleted branch fix/linux-save-backup-folder 2026-11-15 06:23:44 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
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!80
No description provided.