feat(launcher): port Longshot Launcher to Rust and Slint #284
No reviewers
Labels
No labels
area/build
area/install
area/mods
area/saves
area/tooling
area/ui
area/updates
ci: approved
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
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/LongshotLauncher!284
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/LongshotLauncher:feat/rust-slint-launcher"
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?
Players need the redesigned launcher to arrive through the stable updater they already use. This ports the Windows and Linux desktop launcher to Rust and Slint and implements the supplied launcher design.
Using the launcher
Changes from the previous launcher
8f6f6c9, which detects the Rust launcher without--product. Tooling #36Verification
Screenshots
Home, Versions, save details, build folder changes and Settings → Storage
Detected source files · Import drawer · Compact release notes
Updated native screenshots of pickers, checkboxes and licences
The companion changes generate the hidden boundary for future releases and add a divider before earlier changes. Tooling #36 · Longshot #2605
Possibly related, for context:
dd65dac17439553784b1The home screen in the merged launcher and the Rust build, both at 1200 × 760 with synthetic local data.
39553784b13e39c70392The Rust packages are now the default. Added previous-stable handoff, rollback and save-migration results, together with the Home comparison. Windows GUI testing identified the display bug fixed by the updated Slint pin.
3e39c703929ac7c41c709ac7c41c70469c577c86Updated the branch and description for the Rust-only application and native Slint redesign. The branch includes the latest launcher CI changes and Windows fix from main.
Native Rust/Slint windows at 1280 × 800 with generated local fixtures. The Home, Versions and Settings captures use the same profile. The build capture uses a synthetic builder. No game content or real player data is shown.
469c577c8647308b12c1The running launcher now renders the published v3.2.0 release body with styled headings, inline links, emphasis, lists and a horizontal rule. The Versions table gives the full nightly identifier its own column. At compact widths the status moves below the version, leaving room for the channel, size and action.
47308b12c1b8169c87faVerified the responsive version table at 1280×800 and 960×600 and clicked the Windows download link in the published v3.2.0 release notes. The native suite now passes all 55 tests.
WIP: feat(launcher): port Longshot Launcher to Rust and Slintto feat(launcher): port Longshot Launcher to Rust and Slintb8169c87fa6d48b54ea86d48b54ea885f4598ac3Home, Mods, Saves and Versions now use the same divider. The screenshots show the native launcher with a synthetic library, including the end of an eight-slot list, a named save in the picker, and the structured build log. The controller hint bar slides in during gamepad use and yields its space back to the page for mouse and keyboard use.
85f4598ac3ea7e3d84abThe build wizard checks the selected source automatically. Build starts when the player chooses Build Longshot. The save picker shows the selected slot’s thumbnail, and Import opens locations before asking which slot to use. These native screenshots use synthetic files and profiles.
ea7e3d84abbf01157d8abf01157d8ab1a4405b63The three pickers now give Manage a compact header target and Add a full-width row. The native launcher remembers when a specific module licence has been shown. The player can expand it again before choosing whether to enable the module.
b1a4405b635c4ef8c2b65c4ef8c2b63004c1dbf23004c1dbf2a74ebebfedHome now centers the ready and update states, gives both selectors equal width, and offers Update and play beside Play. Versions offers the same choices. The save detail title wraps, with its date and slot aligned underneath.
The builder's Channel row selects the track. The Version row shows its resolved build or lets the player select an earlier release or a pull request. Build folders opens both destinations. The builder and Settings offer to move existing Longshot files or leave them in place when changing either destination.
Storage is now in Settings. The Versions shortcut opens that same section.
All screenshots use synthetic profiles and local test files.
a74ebebfed461d922a79461d922a79684109eff1684109eff16f1f14f086The main lists align with the header actions. I dragged the scrollbar beside synthetic save cards at 960 and 1280 pixels. Storage fits its categories into one or two rows.
The build gauge uses the weighted progress of all enabled stages. This Slint preview shows the near-completion state while shader preparation is still running.
6f1f14f0869d12e96176Home now groups its welcome post at the top and centers the running-game controls.
Check for updates checks every installation. Here the selected stable copy is current and the nightly copy has an update.
Play opens a launch screen. It shows the elapsed build time after an explicit build, or live progress while the builder updates an existing game. Close returns to Home while the game continues.
Storage previews the reclaimable build files and their estimated size. This native fixture contains a synthetic unused tool.
9d12e96176d616956c06d616956c0697515aea0497515aea040468dfb5e1The Home actions are now centered between the header and profile counts. During a rebuild, the launch screen shows the current step, progress, and a link to its live log. Versions and NFC settings use aligned rows across window sizes.
These previews use synthetic data.
0468dfb5e13f560a2d793f560a2d79f70c6ea970Build stage timing, percentage and ETA now appear under the stage name. Pending stages use a single line.
f70c6ea970d2965f00c5The build sidebar includes a Play after build checkbox. Storage groups mods with Your data, aligns used and free space with the title, and opens cleanup review over the whole window.
d2965f00c56fa0bf9393Storage now puts its folder and cleanup actions in the header. The build-tools tile shows both its size and management note. The Faster updates checkbox sits below the file list.
6fa0bf93939403a50f40The Storage header now has one Change location action that opens Game settings. The French (Canada) application-menu action fits its translated label. The Home footer reserves its own space when a profile has no installed game.
9403a50f406b473116416b47311641f4cf828b68f4cf828b68205943331dBuild and Play now ask for approval when the selected builder reports that an enabled profile mod needs permissions. Cancel stops the operation. Allow and continue approves the reviewed content hash and resumes the original request.
205943331d4919a600214919a600212c89b7ac22A player can add an extracted mod to their profile even when their builder lacks the full mod tools. The launcher reviews executable patches before Build or Play. A change to the patch contents requires fresh approval.
The native launcher captured these two dialogs using a synthetic profile and dummy patch.
2c89b7ac2222d880209422d8802094eb489887afThe Home summary keeps its profile context in the header, and the Versions sidebar gives Steam and Remove equal width. The build and launch screens now share a right-side live log. The mod review dialog separates the mod name, permissions and source path.
eb489887af47f25b9b95The build wizard keeps its actions in place during game verification. Profiles with an unapproved mod see a permissions banner below the game-file selector. The folder controls are now in a right-hand drawer.
These screenshots show a synthetic game path and profile. The welcome screen includes the revised first-build space estimate, and the progress view reserves room for the estimate while the builder gathers timings.
47f25b9b95a2377e0e54a2377e0e54379d923e38Scrolling up now pauses live log following. Both drawers kept the visible rows fixed while 25 synthetic entries arrived. Scrolling back to the bottom resumed following and kept the newest entry visible as another 20 arrived. The completed build offers Continue to Home beneath Play.
The standalone builder uses the same Linux data and cache defaults in Longshot PR #2629.
379d923e38840d2fddb1Optional module settings now belong to each installed version. These screenshots show two installations of the same synthetic nightly after a launcher restart. DLSS is off in the first and on in the second. Saving the change did not start a build. Playing the second installation passed its DLSS choice to the builder.
The Your Game screen also keeps the optional modules in place during verification, with a larger title on each card and a wider left inset in the game-file selector.
840d2fddb14e815556054e8155560552a9475477Switching from v1.3.1 to nightly copies saves and mods into a profile and preserves the original files, settings and build list for a return to stable. Nightly profile changes stay with nightly.
Settings → Storage now offers Review files when it finds generated files from a previous launcher. In this synthetic installation, confirming cleanup removed the old executable and shader cache. The original save, mod and game source remained, and the banner disappeared.
The Linux AppImage, Windows installer executable and Windows portable package all passed signed v1.3.1 downgrade and rollback checks. The Windows checks ran under Wine.
52a9475477d29e10bd9dAt 1280 × 800, Home and the builder wizard both start the right column at x=838. The save detail timestamp now shares the left margin with Hearts. These screenshots use a synthetic profile.
d29e10bd9d0722ccae740722ccae741a51f6c03f1a51f6c03f0e8b12851eSelecting Stable in Settings now offers to install the published stable release and restart. The screenshot shows a local nightly-tagged build checking the signed v1.3.1 release in an isolated profile.
Home now shows launcher updates above the play controls. View changelog opens the launcher release notes and Back returns to Home.
@review
0e8b12851e7a3ccdc234Recommendation: Request changes. The port removes the launcher’s backup restoration workflow while continuing to create backups during save operations. The review is also incomplete, so other regressions may remain.
The change replaces the desktop launcher with a Rust and Slint application and adds the redesigned workflows. Players lose the existing in-app way to restore saves from a backup.
Blocking (1): must change before merging.
ui/saves.slint:1: The port removes the existing Restore from a backup action without providing a replacement. (more on the line) Do: Restore a backup browser and recovery action for existing and newly created backups, with a confirmation before replacing saves.@fixcan do L1.Checks: Still running:
CI / Rust formatting, lint and tests (pull_request),CI / Release packages and stable upgrades (pull_request).More: does it help, other systems, switches, what was read
Does it help: Unproven as a complete replacement. The author reports native Linux checks, synthetic controller and NFC checks, and Windows packaging checks under Wine; physical Windows hardware was not tested.
Other systems: The replacement affects Windows, Linux, Steam Deck, existing installations, save migration, game builds and updates. Those paths have not all been reviewed here.
Switches: Not fully reviewed. The new code reads and passes several LONGSHOT_, HOS_ and RX_ environment variables.
Reviewed:
0e8b12851eagainstde762eeacc: Read AGENTS.md and CONTRIBUTING.md at HEAD and base, the commit message, PR description and comments, src/players/archive.rs, src/players/imports.rs, src/players/disk.rs, src/players/saves.rs, src/players/stable.rs, src/players/profiles.rs, src/players/dialogs/import.rs, src/players/dialogs/commit.rs, src/game/launch.rs, src/game/chooser.rs, src/home.rs, src/storage/cleanup.rs, src/window_events.rs, Cargo.toml and scripts/package.sh. Skimmed the change summary, CI changes, NFC code and selected old launcher views. Most changed files, generated assets, translations and tests were not reviewed; the requested complete second pass was not performed.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run, as requested. The supplied CI results show two checks still running.
Overlaps and merge order: Not checked; network access is unavailable.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -0,0 +1,400 @@import { EditableTitle } from "editable-title.slint";L1 (blocking): The port removes the existing Restore from a backup action without providing a replacement.
When: A player who imports over a save gets an automatic backup, but cannot browse and restore it in the new launcher as they could in the previous version.
Do: Restore a backup browser and recovery action for existing and newly created backups, with a confirmation before replacing saves.
7a3ccdc2341907978a7c1907978a7c1e475b9b24Settings → Storage → Previous launcher now lets players choose which generated files to remove. The estimate follows the selected categories. In this temporary profile, clearing only the game shader cache preserved the built game, save, mod and original source.
1e475b9b24f910ec0a34Settings → Storage → Previous launcher now lists detected files by type and location. Each removable row shows its own size and opens a cleanup review for that category. The screenshot uses a temporary profile with an old build workspace and game installation.
f910ec0a34087a7a4cc3The Previous launcher header now offers Clean all, and each removable category has its own Clean up action. Builder-stamped RomFS and ExeFS copies can be removed separately when the corresponding source package is available. The storage loading screen waits for the scan before showing category details.
The Versions footer now offers cleanup when a previous installation has removable files. Each storage row opens its own confirmation using the measured files. Confirming rechecks those files and displays removal progress above the dialog buttons.
5fb49d23f547873b58ccA fresh download now asks once whether to install for this user or keep the launcher portable. On Linux, Install places the AppImage in the Longshot data directory, normally
~/.local/share/longshot, and uses~/.cache/longshotfor reusable build files. Portable keeps data and cache under a siblingLongshotdirectory.The self-review also fixed routing a launch request to an already running launcher, switching away from a damaged profile, applying reporting settings to the selected build, and handling cache locks and damaged packaging downloads.
The stable updater verified and staged the Windows artifacts. On Linux it installed the AppImage and the launcher restored the original on rollback. A Windows test under Wine verified fresh data and cache paths and retention of previously populated paths.
A Windows desktop or Start menu shortcut that can't start the game does nothing visible today, and a new profile picks up the main player's saves on its first Play. This fixes both in one commit on top of this PR's head (
b498842):e59420condyst/LongshotLauncherfix/284-shortcut-errors-empty-profiles. Forgejo can't open a PR between two sibling forks, so it's here for you to take if you want it:What a player sees now
--playand no window. Its errors (no version built yet, a version'sLongshot.exegone, a bad profile) went only to the stderr of awindows_subsystem = "windows"program:mainshowed its dialog only for a start with no arguments (args_os().len() == 1).--launchand--play.--self-checkand the NVIDIA elevation stay silent; the flag is set only afterupdate::startupandhandle_nvidia_cache_argumenthave passed.start_forran the builder with--output jsonin every mode, but only the window reads those events. A shortcut's builder had no progress window during a Play-time update (shaders after a driver update, a touched .nup) and no error box (exit 120/121/123).LaunchMode::ShortcutandPinnedShortcut(the Steam tile) now pass--output user, which turns on the builder's progress window and error box (longshot-builder/src/output.rs). The window keepsjson.BuilderSaidIt).new_or_rename(.., "new", ..)made an emptysaves/. The builder'scarry_saves(build-driver/src/play.rs) fills any profile whosesaves/is empty with the first earlier saves it finds (%APPDATA%\Longshot, a version'suser/). So "Ana"'s first Play started the main player's adventure.saves/save/, which the builder leaves alone. Saves > Copy to profile brings a save over when the player wants one.Testing
On Windows 11, Rust 1.99.1 (x86_64-pc-windows-gnullvm, llvm-mingw):
cargo fmt --checkandcargo clippy --locked --all-targets -- -D warnings: pass.cargo test --locked: 109 pass and 9 fail, and the same 9 fail onb498842without this change. They look Windows-only: CI runs Linux. They are:folders::tests::workspace_move_is_cancellable_and_refuses_collisions_and_active_buildersgame::prune::tests::keeps_each_rollback_and_unregistered_playable_installsgame::prune::tests::protects_profiles_rows_fetches_rollback_partial_and_player_filesgame::registry::tests::moved_portable_reads_previous_locations_without_rewriting_stable_pathsgame::steam::library::tests::library_play_uses_the_launcher_and_preserves_the_steam_identityhome::tests::moving_a_portable_install_repairs_missing_paths_but_keeps_live_inputsstorage::reclaim::preservation::previous_build_review_removes_only_selected_outputs_after_confirmationstorage::tests::installed_games_excludes_prefetched_tools_and_previous_launcher_gamesupdate::releases::tests::release_py_fixture_verifies_exact_bytes_onlyplayers::tests) now also checks that a new profile has an emptysaves/save/.--play --launcher-home <scratch>with no version: it stays open with the dialog "Pick your game files and build a version of Longshot first." (window title "Longshot Launcher"). Before, it exited with that line on stderr only.Not tested: the builder's own progress window and error box during a real shortcut Play, since that needs a built version. Also not tested: the Steam tile on a Deck, where
--output usermakes the builder open its windows under Steam.🤖 Generated with Claude Code
@review
Recommendation: Request changes. The launcher still removes the existing backup browser and Restore action. Players must locate backup files themselves and import slots individually.
The pull request replaces the launcher with a Rust and Slint application and redesigns its interface. It retains many install, update and save workflows, but loses the direct backup restore workflow.
Blocking (1): must change before merging.
ui/saves.slint:1: The port removes the existing Restore from a backup action without providing a replacement. When: A player who imports over a save gets an automatic backup, but cannot browse and restore it in the new launcher as they could in the previous version. Do: Restore a backup browser and recovery action for existing and newly created backups, with a confirmation before replacing saves.@fixcan do L1.Since the last review (on
0e8b12851e)Still open: L1 (The port removes the existing Restore from a backup action without providing a replacement…)
Checks: Still running:
CI / Rust formatting, lint and tests (pull_request),CI / Release packages and stable upgrades (pull_request).More: does it help, other systems, switches, what was read
Does it help: Unproven: the supplied evidence shows several launcher workflows working, but the backup restore action remains missing.
Other systems: The change affects Windows and Linux installation, updates, builds, profiles and saves. The description reports Linux native checks and Windows checks under Wine; native Windows hardware remains untested.
Switches: The README documents Slint renderer and performance environment variables and LONGSHOT_LAUNCHER_HOME. A complete switch audit was not completed.
Reviewed:
4d2b8bd0fdagainstde762eeacc: Read AGENTS.md, CONTRIBUTING.md, the save import flow and ui/saves.slint; inspected the previous backup restore implementation and the supplied comments, CI and change list. The full pull request and all changed files were not read; the review checklist and pull request template were absent at the specified paths.; nothing run (a code review).Checked and fine:
Testing: The description reports 85 Rust tests and native Linux checks; the two listed CI checks are still running. No commands that build or run project code were executed for this review.
Overlaps and merge order: Longshot #2605 and Tooling #36 are described as companion release-note changes; their merge status is not provided.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@BeanBot we don't need the restore from backup
@review
Recommendation: Request changes. The port removes the existing backup browser and restore action, leaving players to locate backups manually and import individual slots.
The Rust and Slint launcher redesigns installation, builds, updates and save management. It retains backup creation but removes the previous guided restore workflow.
Blocking (1): must change before merging.
ui/saves.slint:1: The port removes the existing Restore from a backup action without providing a replacement. When: A player who imports over a save gets an automatic backup, but cannot browse and restore it in the new launcher as they could in the previous version. Do: Restore a backup browser and recovery action for existing and newly created backups, with a confirmation before replacing saves.@fixcan do L1.Since the last review (on
4d2b8bd0fd)Still open: L1 (The port removes the existing Restore from a backup action without providing a replacement…)
Checks: Still running:
CI / Rust formatting, lint and tests (pull_request),CI / Release packages and stable upgrades (pull_request).Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Not a perf change. The description and comments report native Linux checks and updater tests; physical Windows hardware remains untested.
Other systems: The missing restore workflow affects players on both Windows and Linux. Import can recover individual slots from a manually located folder, but does not restore the backup-browser workflow.
Switches: Not assessed in this re-check.
Reviewed:
4d2b8bd0fdagainstde762eeacc: Read AGENTS.md, CONTRIBUTING.md, ui/saves.slint and src/players/saves.rs in full; inspected backup and import references and the commit list. The remaining large port and its generated files, translations and recorded runs were not read in full.; nothing run (a code review).Checked and fine:
Testing: No commands that execute project code or tests were run. The reported CI formatting, lint, tests and release-package checks are still running.
Overlaps and merge order: None identified from the supplied information.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
Recommendation: Request changes. Updating a stable Linux launcher lands on a first-run install prompt that can leave the player in an empty library, a newly downloaded launcher no longer upgrades an installed one, and the release tooling would treat this repository as Longshot.
The PR replaces the .NET launcher with a Rust and Slint one. The update verification, save transfers, folder moves and cleanup I read are careful (signed sums, staged copies, rechecks before deleting). The blockers are on the upgrade and release paths.
Does it help: not a perf change. The author reports native Linux runs and updater tests with signed v1.3.x packages; physical Windows hardware and controllers are untested.
Other systems: Windows, Linux and Steam Deck installs, existing profiles and saves, Steam and desktop shortcuts, and the release workflow are all affected. Blockers 1 and 2 are the install paths; blocker 3 is releasing.
Switches: new
--no-self-update/LONGSHOT_LAUNCHER_NO_SELF_UPDATEandLONGSHOT_LAUNCHER_EXE(unset by default), and packaging-onlyLONGSHOT_LLVM_MINGW,ZIG,APPIMAGETOOL,APPIMAGE_RUNTIME;LONGSHOT_LAUNCHER_HOME,LONGSHOT_LAUNCHER_TRUSTandLONGSHOT_LAUNCHER_NO_CDNare read too. The defaults I saw are right; this was not a full audit.Reviewed:
cf229bedagainstde762eeacc. This is a partial review of a very large PR (about 39,000 lines of Rust and Slint).build.rs,Cargo.toml,tests/update_handoff/,src/update.rsandsrc/update/{releases,windows,shortcuts,linux}.rs,src/home.rs,src/home/portable.rs,src/main.rs,src/desktop.rs,src/players/{stable,saves,archive,disk,imports,profiles,running}.rs,src/players/dialogs/commit.rs,src/storage/{cleanup,reclaim}.rs,src/storage/reclaim/scan.rs,src/folders.rs,src/folders/tree.rs,src/game/{prune,registry,library,launch,mod_review}.rs,src/mods/trust.rs,ui/setup.slint.src/storage.rs,src/preferences.rs,src/game/{versions,process,releases,steam}.rs,src/game/steam/library.rs,src/mods/local.rs, the docs.src/game/(wizard, jobs, actions and others), most ofsrc/mods/andsrc/players/, controller, logbook, everyui/view but setup, the tests, translations and artwork scripts.Nothing was run.
Fixed in this review: nothing.
Checked and fine:
--self-checkbefore the swap, and a failed swap keeps the old one.assets/keys/release_keys.jsonis the one the .NET launcher trusts.package.shand the CI scripts are pinned by hash.saves/save/, so the builder does not fill it with another player's saves.Blocking (to change before merge)
src/update.rs:388: existing Linux players get the first-run chooser after updating. v1.3.x offered Install only on Windows, so its AppImage ran wherever it was. After the self-update restart it is neither registered, portable nor underLONGSHOT_LAUNCHER_HOME, sofirst_launchasks "Install or Run portable?".Longshot/beside the AppImage and makes it the launcher home. Profiles, versions and settings in~/.local/share/longshot/launcherare not shown, andstable::user_folderthen looks for stable saves in the portable folder. It looks like everything was lost.~/Games, which is reserved.controller::listenis only bound to the main window), which matters in Steam Gaming Mode.Do: skip the chooser when the standard launcher home already holds data (settings,
builds.json,versions.jsonor profiles) and run in place. Add a test that starts over a v1.3.1 home; the handoff test only runs--self-checkand--rollback.src/update.rs:395: opening a newer download no longer upgrades an installed launcher.start_existing = installed && (!explicit || installed_newer)starts the installed copy even when it is older than the file just opened, and says nothing. The .NET launcher handed over only to a newer installed copy and otherwise offered Install again. If an installed launcher crashes at start or can't update itself, downloading the new one and running it starts the broken one; only--installgets out. Do: hand over only when the installed copy is the same version or newer; otherwise offer to update it.scripts/release_keys.json:1,.tooling-rev:1: release tooling.product_ofrecognises the launcher byCore/ReleaseTrust.cs, which this PR deletes, and takesscripts/release_keys.json, which it adds, to mean Longshot. The release skill runsrelease.py nextandcheck-tagwithout--product, so in this checkout they would apply Longshot's numbering (from v3.0.0) to the launcher: a valid v2.x tag is refused andnextcan propose a v3 one. CI passes--product launcherand is unaffected.e31ef1cis not on Toolingmain: it is the head of the open Tooling #36. After a squash merge or a force push, the commit the release workflow fetches may no longer be reachable.Do: teach
product_ofthe new layout (in Tooling #36 or a sibling), merge it, and pin the commit onmain.PR description: removed features are not mentioned. Compared with
main, I find no replacement in the Rust code for the save editor and progress editing, exporting saves to emulators, importing Hookshot game settings, or keeping the PC awake during builds (Core/KeepAwake.cs). The backup restore removal is a maintainer decision already made in the comments, and I don't hold it. Do: list what is dropped in the description, and restore keep-awake or say why builds no longer need it.Suggestions (the author may take or leave)
src/folders/tree.rs:318:renameat2(RENAME_NOREPLACE)is not supported by every filesystem (some FUSE and network mounts). Portable setup and folder moves would fail there; consider a checked fallback onEINVAL.README.md/docs/releases.md: say what happens to a download opened while another version is installed, once blocker 2 is settled.Questions
docs/releases.mdis meant to be the same file in both repositories; this PR drops that sentence and points at a Longshot guide atdocs/dev/reference/releases.md. Is the split intended?AGENTS.mdshould say so either way.Testing: at posting time the title, change-detection and lint checks passed; Rust formatting, lint and tests and Release packages and stable upgrades were still running. Missing: an upgrade from a real v1.3.1 home on Linux through first start, native Windows, a Steam Deck and a physical controller.
Overlaps and merge order: Tooling #36 goes first, then repin. #292 (Mods page for the Rust launcher) builds on this one. #268, #273 and the other open .NET UI PRs (#261, #262, #263, #265, #275, #279, #282) edit code this PR deletes and would need porting.
@ -1 +1 @@6dfc20e8ba2b9d461fc4ccea69e7f8c3ebadf7d8e31ef1cfe0abb3f08e48fd9bda68e85de65bbbe9Blocking 3: this commit is on the unmerged Tooling #36, not on Tooling main. Merge it first and pin the main commit.
@ -0,0 +1 @@../assets/keys/release_keys.jsonBlocking 3: Tooling's product_of takes this file (with no Core/ReleaseTrust.cs) to mean Longshot, so release.py without --product applies Longshot's rules here.
@ -0,0 +315,4 @@src.as_ptr(),libc::AT_FDCWD,dst.as_ptr(),libc::RENAME_NOREPLACE,Suggestion: some filesystems reject RENAME_NOREPLACE; consider a checked fallback on EINVAL.
@ -0,0 +385,4 @@) -> Result<bool> {let explicit = args.iter().any(|a| a == "--install");if !explicit&& (own_tag() == "dev"Blocking 1: a v1.3.x Linux AppImage updated in place matches none of these, so it gets the first-run chooser; Run portable then opens an empty library, Close starts nothing. Skip it when the standard home already holds data.
@ -0,0 +392,4 @@{return Ok(false);}let start_existing = installed && (!explicit || installed_newer);Blocking 2: an older installed copy is started instead of offering to update it, so a newer download never installs without --install.
Recommendation: Request changes. The upgrade blockers from the last review are fixed. Still blocking: the release pin is off Tooling
main, the repository's own rules and Longshot cross-checks were dropped, and builds no longer keep the PC awake. One mod path also skips a refusal from the builder.The PR replaces the .NET launcher with a Rust and Slint one. The updater, save transfers, cleanup and Steam writes are careful: signed sums, staged copies, rechecks before every delete. What blocks is around the code: release tooling, the rules and tests that guard it, and one player-facing regression.
Does it help: not a perf change. The author reports native Linux runs, updater handoff tests against real v1.3.0/v1.3.1, and Windows runs under Wine. There is no physical Windows, Steam Deck or controller run.
Other systems:
Core/Installer.cs.shortcuts.vdf: atomic, bounds-checked writes.Switches:
--no-self-update/LONGSHOT_LAUNCHER_NO_SELF_UPDATE,LONGSHOT_LAUNCHER_HOME,LONGSHOT_LAUNCHER_TRUST(test key only, as before) andLONGSHOT_LAUNCHER_NO_CDNare all off by default, which is right. The packaging-onlyLONGSHOT_LLVM_MINGW,ZIG,APPIMAGETOOLandAPPIMAGE_RUNTIMEare fine.Reviewed:
1a51015bagainstde762eea(the fork point onmain). This is a re-review: I compared againstcf229bed(jj interdiff) and checked its four blockers.src/update*,src/mods/**,src/home*src/controller*,src/desktop.rs,src/diagnostics.rs,src/i18n.rs,src/shell.rs,src/window_events.rssrc/storage{,/cleanup,/reclaim,/reclaim/scan}.rs,src/players/{profiles,imports,disk,saves,stable}.rssrc/game/{process,launch,prune,steam}.rsscripts/,build.rs,Cargo.toml,tests/update_handoff, thetests/*.py, the docs, and everyui/*.slintsrc/main.rs,src/game/{versions,nvidia,steam/library,jobs}.rssrc/players/archive.rs,src/folders.rssrc/game/: wizard, releases, actions, library, registry, forecast, notes and the smaller modules.src/folders/{tree,mod_store}.rs,src/preferences*,src/logbook*,src/players/{running,reader,nfc,rows,caption}.rs,src/storage/{drives,mods,shaders}.rs.Fixed in this review: nothing.
Checked and fine:
.oldELF/AppImage header and no longer gets the first-run chooser.check_handoffcovers it.use_installedupgrades an older installed copy on the same channel, with tests.main.rs:533).--output useris passed in Shortcut and PinnedShortcut modes. A new profile getssaves/save/.assets/keys/release_keys.jsonequals the one inCore/ReleaseTrust.cs. Signed SHA256SUMS: asset hashes come only from the signed sums. Downloads are size-capped and streamed through a hash. The staged launcher must pass--self-check. On Linux the swap is fsynced and atomic. On Windows a failed second rename restores the old launcher, andrecover()handles a crash in between.contents: writeis given only to the publish job, andci_changes.pyruns from base.-LiteralPath.shortcuts.vdf: a bounded parser, patches applied after the original bytes are verified, atomic persist.nvapi64.dllis loaded from System32 only.--accept-key, the sha256 is pinned, and code-permission grants are bound to the executable, profile and hash.Blocking (to change before merge)
.tooling-rev:1: the pine31ef1cis only on the fork branchfeat/release-notes-marker. Tooling #36 has since been squash-merged as8f6f6c9. CI fetches the pin by commit, so once that branch goes, every job fails. Ate31ef1c,product_of()also still detects the launcher only byCore/ReleaseTrust.cs, so arelease.pyrun without--producthere would be treated as Longshot. Do: pin8f6f6c9, which readsassets/keys/release_keys.json.AGENTS.md: the PR drops the Clean break bullet and the line "update a check in the same pull request rather than weakening it". The port is the case both rules exist for, and nothing else now tells the next contributor not to add Hookshot launcher-settings or channel compatibility.docs/releases.mdalso drops "the same file in both repositories" without a Longshot change or a note in either AGENTS.md. It still cites deleted files (Core/ReleaseManifest.cs,ReleaseTrust.cs,ToolsLock.cs,SelfUpdate.cs,StableSwitch.cs,tests/run_all.py), and it no longer says the key must equal Longshot'sscripts/release_keys.json. Do: keep both AGENTS.md rules, reworded forsrc/. Either keepdocs/releases.mdshared or record the split in both repositories. Point the stale references atsrc/update/*.rsandsrc/game/releases.rs.tests/test_launcher_core.py: the file goes from about 300 lines to 11, which is the weakening AGENTS.md forbids. The checks against the pinned Longshot have no replacement anywhere:tests/longshot.refand the--longshot/--pinnedsteps. Concretely:LANGUAGES;scripts/fetch.py.src/game/licenses.rshard-codes those SHAs, so an SDK bump would show players the wrong licence;nn_applet.c;packs.py;build-events.md. Codes 120, 121 and 123 now drive behaviour inprocess.rs.The version-ordering table (rc, pre-3.0,
git describe, malformed names) shrank to a few Rust cases, and theName=Longshot Launcherdesktop check is gone. CI also doesn't runtest_launcher_core.py. Do: port those checks to read the Rust sources, keeptests/longshot.refand its CI step, and port the version table as a Rust test.Keeping the PC awake during builds (
Core/KeepAwake.cs) is dropped, and nothing insrc/inhibits sleep: noSetThreadExecutionState, logind inhibitor or similar. A first build takes long enough for a laptop or a Steam Deck to suspend partway through. The description lists the removal but gives no reason. Do: restore it for builds, or say why builds no longer need it.src/mods/actions.rs:130-144: when the builder refusesadd <path> --planwith any error, a folder or.zipis retried asimport <path>. If the builder refuses a zip on purpose (a bad manifest, an unsafe entry), the launcher pushes it through import anyway. The original error is shown only if the import also fails. Do: fall back only on the builder's specific "not a Longshot mod" error, and show the import review first, as the Emulators section does.Suggestions (the author may take or leave)
src/update/linux.rs:104: the in-place upgrade is recognised only while<AppImage>.oldexists. If a player deletes it, the chooser comes back. Also treat a standard home that already holds data (settings,builds.json, profiles) as an existing install.src/mods/actions.rs:199-210: an update doesn't callreview_pending_permissionsor--planas install does, so a changed code hash is only asked about at Play.src/mods/local.rs:293:exefs_hashhashes only top-level*.ipsand*.pchtxtfiles. Confirm the old builders load nothing else from exefs.src/mods/stable.rs:295:game.to_str().unwrap()panics at startup on a non-UTF-8 Linux path.src/mods/builder.rs:105: a hung builder leaves Mods busy for good. Add a timeout or a Cancel.src/desktop.rs:94: removing the menu entry from a portable copy deletes the installed AppImage's entry. CheckTryExecfirst, asregister_installdoes.src/players/profiles.rs:316: a new profile stays empty only because the builder treats an emptysaves/save/as "has saves". Add an explicit marker or a builder reference, since the launcher's ownstable::emptytreats empty folders as empty.src/players/profiles.rs:311: duplicating a profile copies.longshot-*locks and interrupted-swap leftovers.src/players/saves.rs:229andstable.rs:281: the stable import and slot imports take different lock files for the same profile.src/storage/cleanup.rs:146: Clean all with profiles deletes saves androot/save-backupswith no last backup. In installed mode the real backup root is left behind.src/game/versions.rs:425: Linux shortcut modes give the builder pipes. If the game inherits them and outlives the builder, it can hit EPIPE after the launcher exits. Use theLaunchOutputtemp files, as Window mode does.src/game/process.rs:290: on Windows,taskkillruns withoutCREATE_NO_WINDOW, so a console window flashes on cancel.jobs.rs,actions.rs,launch.rs:51and others calllock().unwrap(). One worker panic then breaks every UI callback.steam.rsalready recovers withinto_inner..forgejo/workflows/release.yml: deletekey.pemandseal.keyon anEXITtrap, not only on success.ui/mods.slint:499,521,526,541hard-code English.scripts/translations.pymissesLocale.t(variable)calls, so "Discover", "Repositories" and the track names show in English inde.jsonand the other catalogs.CONTRIBUTING.md:25still describestest_launcher_core.pyas the core's no-toolchain tests.src/controller/udev.rs:82: I believesteam-devicesisn't in Arch's repos, so the button offered on Arch would fail; please check.Testing:
Overlaps and merge order:
mainfirst: Tooling #36 is already merged.@ -1 +1 @@6dfc20e8ba2b9d461fc4ccea69e7f8c3ebadf7d8e31ef1cfe0abb3f08e48fd9bda68e85de65bbbe9Blocking 1: e31ef1c is only on a fork branch; Tooling #36 merged as 8f6f6c9. Pin that.
@ -0,0 +127,4 @@let import = super::local::review(&profile, &path)?;return self.add_local_folder(root, &profile, import);}Err(error)Blocking 5: any add --plan refusal falls back to import; fall back only on the builder's not-a-mod error.
@ -0,0 +101,4 @@}}fn updated_appimage(path: &Path) -> bool {Suggestion: also treat a standard home with data as installed, so a deleted .old doesn't bring back the chooser.
@ -19,3 +1,1 @@import jsonimport osimport re"""Run the launcher's offline Rust tests and validate its bundled translations."""Blocking 3: the Longshot pin checks (languages, licences, save user, shader caches, error codes) and the version table have no replacement.