feat(settings): the desktop and Start menu shortcuts can open the launcher #279
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!279
Loading…
Reference in a new issue
No description provided.
Delete branch "riqmarmes/LongshotLauncher:feat/shortcuts-open-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?
Why
On Windows the desktop and Start menu shortcuts are written with
--play, so they start the game straight away, and the refresh after a launcher update writes them again the same way. A player who wants to go through the launcher first (to check for updates or pick a version) loses that choice at every game or launcher update, and has to edit the shortcut again.What changed
Settings has a new Shortcuts section: Open the launcher from the desktop and Start menu shortcuts. Off (the default), nothing changes: a shortcut starts the default build's game with
--play. On, the Ready screen writes the sameLongshot.lnkwith no arguments, so it opens the launcher's window; the refresh after the launcher's own update reads the setting and keeps it. Changing the tick rewrites the shortcuts that are already there immediately, so the next press follows it without a rebuild.LauncherSettings.ShortcutsOpenLauncher(off by default; no settings-format change).Shortcuts.WindowsArgumentsdecides--playor no arguments;WindowsShortcuts.Write/Refreshtake the choice.SettingsViewModelsaves it and rewrites the shortcuts that are there; the section is Windows-only (Linux's shortcuts open the launcher already).Testing
Windows 11, .NET SDK 10.0.404, rebased onto
main@9791346(Launcher 2); the Settings and README conflicts were resolved over #259:dotnet build App/LongshotLauncher.csproj(Release): 0 errors.tests/launcher_app(Release): builds and runs with 0 failures.SettingsChecks+ShortcutChecks: 110 checks pass, including the settings round trip and the--play/no-arguments choice."shortcutsOpenLauncher": truetosettings.json.shellcheck -x scripts/package.shandgitleaks dir . --config .circleci/gitleaks.toml --redact: pass.Not run locally:
python -I tests/test_launcher_core.py: the account-name assertion is fixed inmainby #280, so the suite now passesPrivacyChecks; it stops only atSavesChecks' symlink checks because this Windows account lacks the symlink privilege (Developer Mode). A full run needs Developer Mode/elevation or a Linux machine. This repository's PR CI runs only the title check (the compile-and-test job runs on pushes tomain).The new English texts are not in the translation catalogs yet, so they show in English until translators add them (the catalog check reports them as missing, as it does for other recent texts).
Related work
No existing PR adds this setting. #273 (open) edits the same
--playline for packaged launchers, so this branch will conflict there and, when it lands, the no-argument form must keep itsPackaging.StartArgument. #130 is the Steam-tile precedent: that tile already opens the launcher instead of starting the game. #280 fixed the account-name privacy assertion that blocked the full core run here; it is merged inmain.Risks
The default is unchanged, so existing players keep the game shortcut. A shortcut that starts another launcher is still left alone (
Shortcuts.MayTouch), and the setting is Windows-only. No save, build or release-format change.Screenshots
launcher-settings-new.pngshows the new section in the rebased Settings layout; it goes in the comment below.Assisted-by: DeepSeek Harness (deepseek-flash)
The new Settings section on Windows 11 (unticked, the default). Ticking it writes shortcutsOpenLauncher: true to settings.json.
Possibly related, for context:
WIP: feat(settings): the desktop and Start menu shortcuts can open the launcherto feat(settings): the desktop and Start menu shortcuts can open the launcherSince the description was written: the app-level test project builds and runs cleanly (0 failures). The full core suite still stops at the pre-existing account-name and Windows symlink-privilege limits described under Testing; a normal Windows account with Developer Mode, or a Linux machine, still needs that run.
Added #280, the test-only fix for the account-name privacy assertion that stopped the full suite here. With it, the remaining local blocker is the Windows symlink privilege (Developer Mode/elevation).
988e2056de83fa4e8a6cRebased onto main @
9791346(Launcher 2): the SettingsView and README conflicts are resolved, and the Shortcuts section now sits after Updates. New screenshot attached. App tests still pass (0 failures); the core suite now passes PrivacyChecks and stops only at the Windows symlink privilege.I believe the new launcher fixes this, please let me know!
Pull request closed