changed.更了好多

This commit is contained in:
lincube
2026-05-12 16:46:49 +08:00
parent 563f12caa1
commit 33c264f6dd
127 changed files with 5257 additions and 10534 deletions

View File

@@ -7,12 +7,12 @@ public static class HostExitCodes
{
public const int Success = 0;
// Secondary instance activated the existing primary instance successfully.
// Legacy host-side activation result retained for old builds and launcher compatibility.
public const int SecondaryActivationSucceeded = 12;
// Secondary instance failed to activate the existing primary instance.
// Legacy host-side activation failure retained for old builds and launcher compatibility.
public const int SecondaryActivationFailed = 13;
// Restart relaunch couldn't acquire the single-instance lock in time.
// Legacy restart lock failure retained for old builds and launcher compatibility.
public const int RestartLockNotAcquired = 14;
}

View File

@@ -28,8 +28,6 @@ public record StartupProgressMessage
public static class LauncherIpcConstants
{
public const string PipeName = "LanMountainDesktop_Launcher";
public const string LauncherPidEnvVar = "LMD_LAUNCHER_PID";
public const string PackageRootEnvVar = "LMD_PACKAGE_ROOT";

View File

@@ -0,0 +1,9 @@
namespace LanMountainDesktop.Shared.Contracts.Launcher;
public enum MultiInstanceLaunchBehavior
{
RestartApp,
OpenDesktopSilently,
PromptOnly,
NotifyAndOpenDesktop
}