feat(linux): LONGSHOT_LAUNCHER_EXE, the path a package starts the launcher with #54
No reviewers
Labels
No labels
area/build
area/install
area/saves
area/ui
area/updates
good first issue
gpu/amd
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
platform/linux
platform/steam-deck
platform/windows
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!54
Loading…
Reference in a new issue
No description provided.
Delete branch "gab9281/LongshotLauncher:feat/flatpak-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why: the Longshot Flatpak now installs this launcher's own program in
/app/bin, a path that exists only inside its sandbox. The game folders'builder=stamp and the shortcuts need a path that also starts the launcher from outside, and a Flatpak launcher can't replace its own file.What changed
Core/SelfUpdate.cs:SelfUpdate.StartPath. It returnsLONGSHOT_LAUNCHER_EXEwhen a package sets it, else the AppImage (APPIMAGE), else the program. The Flatpak sets the variable to a start script that runsflatpak run.App/LauncherService.cs:LauncherPath(builder=, the shortcuts, the make_game command) uses it.App/LauncherService.cs: the update check offers the launcher's own update only when it was started from its own file (Program.Layout.File). The Flatpak's anddotnet run's are not, andUpdateLauncherAsyncwould refuse them anyway ("not started from its own file"). Flatpak updates the Flatpak's launcher.tests/launcher_core:StartPathchecks: the package's path first, then the AppImage, then the program.Testing
python3 -I tests/test_launcher_core.py: 675 checks passed.dotnet build LongshotLauncher.slnx -c Release: 0 errors.--self-checkanswers, the window opens, and the home lists Longshot's releases.🤖 Generated with Claude Code
https://claude.ai/code/session_015KgSKoUqUvce5UXG89NBgi
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.