mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #277] [MERGED] feat(launcher): pinnable taskbar shortcut via custom launcher exe #4543
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#4543
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/277
Author: @LukaTheHero
Created: 4/28/2026
Status: ✅ Merged
Merged: 4/28/2026
Merged by: @LukaTheHero
Base:
main← Head:feat/taskbar-launcher-migration📝 Commits (1)
93f30cffeat(launcher): pinnable taskbar shortcut via custom launcher exe📊 Changes
6 files changed (+326 additions, -0 deletions)
View changed files
➕
MarinaraLauncher.exe(+0 -0)➕
app-icon.ico(+0 -0)📝
packages/server/src/app.ts(+12 -0)➕
packages/server/src/services/setup/taskbar-shortcut-migration.ts(+134 -0)➕
tools/win-launcher/Program.cs(+160 -0)➕
tools/win-launcher/build.ps1(+20 -0)📄 Description
Summary
Existing Marinara Engine shortcuts target
start.bat, which Windows 10/11 refuses to pin to the taskbar. Even bypassing that, console windows spawned bycmd.exedon't reliably group under custom pinned icons (Windows treats cmd as a system app and ignores per-shortcut AppUserModelIDs).This PR adds a tiny Win32 launcher (
MarinaraLauncher.exe, ~6 KB) and a one-time startup migration that re-points the Start Menu and Desktop shortcuts at the launcher, stamping a stable AUMID (Pasta-Devs.MarinaraEngine) on the.lnkfile.After this lands, the Start Menu shortcut becomes drag/right-click pinnable to the taskbar, and clicking it launches the engine in a console that groups under the pinned icon — the icon used in the Start Menu carries through unchanged.
How it works
tools/win-launcher/Program.cs— Win32-subsystem .NET 4 app. Two modes:SetCurrentProcessExplicitAppUserModelIDbeforeAllocConsole, so the console window is born with the AUMID. Then spawnscmd /k <start.bat>inheriting that console.--stamp-lnk <path> <aumid>: writes the AUMID property onto an existing.lnkviaIShellLink+IPropertyStore.packages/server/src/services/setup/taskbar-shortcut-migration.ts— Windows-only, idempotent. Only touches shortcuts whose current target is this install'sstart.bat; skips ones already pointing at the launcher.packages/server/src/app.ts— fire-and-forget call after seed steps.MarinaraLauncher.exe+app-icon.icocommitted at repo root so existing users receive them viagit pullon next start.No installer changes — the existing installer continues to work for new users; the migration takes care of them on first launch.
Manual verification
start.bat, watch the server start successfully.MarinaraLauncher.exeandapp-icon.icoare present in the install root after pull.Targetshould be<INSTDIR>\MarinaraLauncher.exe,Argumentsshould bePasta-Devs.MarinaraEngine \"...start.bat\" \"Marinara Engine\", AUMID should be stamped on the.lnk(verifiable viaIPropertyStoreread).Notes
MarinaraLauncher.exeis checked in as a binary (~6 KB).tools/win-launcher/build.ps1rebuilds it from source using the .NET Framework 4csc.exeshipped with every Win10/11 — no external toolchain required.MARINARA_LAUNCHER_TEST_LNKS(semicolon-delimited extra.lnkpaths) so the behavior can be tested without touching the user's real Start Menu shortcut.Summary by CodeRabbit
Release Notes
New Features
Chores
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.