mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
changed.更了好多
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace LanMountainDesktop.Shared.Contracts.Launcher;
|
||||
|
||||
public enum MultiInstanceLaunchBehavior
|
||||
{
|
||||
RestartApp,
|
||||
OpenDesktopSilently,
|
||||
PromptOnly,
|
||||
NotifyAndOpenDesktop
|
||||
}
|
||||
Reference in New Issue
Block a user