Skip to content

Commit

Permalink
Fix autostart with self contained exe
Browse files Browse the repository at this point in the history
  • Loading branch information
awaescher committed Jul 17, 2023
1 parent bcfe030 commit 14dfcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StageManager/AutoStart.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public static void SetStartup(string appName, bool startup)

private static string GetValueAsString(RegistryKey key, string appName) => key.GetValue(appName)?.ToString() ?? "";

private static string GetAppPath() => $"\"{Assembly.GetEntryAssembly().Location}\"";
private static string GetAppPath() => $@"""{Environment.ProcessPath}""";
}
}

0 comments on commit 14dfcac

Please sign in to comment.