Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Iochev authored and Ivan Iochev committed Jan 24, 2024
2 parents e1ec024 + 013287b commit 8d92664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ArctisVoiceMeeter/Infrastructure/StartupManager.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System;
using System.Diagnostics;
using System.Reflection;
using Microsoft.Win32;

namespace NetworkCopy.Utilities
{
public class StartupManager
{
private static readonly Assembly ExecutingAssembly = Assembly.GetExecutingAssembly();
private static readonly string AssemblyLocation = ExecutingAssembly.Location;
private static readonly string AssemblyRunCommand = AssemblyLocation + " --minimized";
private static readonly string AssemblyLocation = Process.GetCurrentProcess().MainModule.FileName;
private static readonly string AssemblyRunCommand = $"\"{AssemblyLocation}\" --minimized";

public bool RunOnStartup
{
Expand Down

0 comments on commit 8d92664

Please sign in to comment.