Fix comments and rename arguments
MODIFY
WalletWasabi.Fluent/Helpers/StartupHelper.cs
WalletWasabi.Fluent/Helpers/StartupHelper.cs
@@ -12,10 +12,10 @@ namespace WalletWasabi.Fluent.Helpers
private const string KeyPath = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run";
// Arguments to add Wasabi to macOS's startup settings.
- private static readonly string AddArgument = $"-c \"osascript -e \' tell application \\\"System Events\\\" to make new login item at end of login items with properties {{name:\\\"{nameof(WalletWasabi)}\\\", path:\\\"/Applications/WasabiWallet.app\\\",hidden:false}} \' \"";
+ private static readonly string AddArguments = $"-c \"osascript -e \' tell application \\\"System Events\\\" to make new login item at end of login items with properties {{name:\\\"{nameof(WalletWasabi)}\\\", path:\\\"/Applications/WasabiWallet.app\\\",hidden:false}} \' \"";
- // Argument to delete Wasabi from macOS startup settings.
- private static readonly string DeleteArgument = $"-c \"osascript -e \' tell application \\\"System Events\\\" to delete login item \\\"{nameof(WalletWasabi)}\\\" \' \"";
+ // Arguments to delete Wasabi from macOS startup settings.
+ private static readonly string DeleteArguments = $"-c \"osascript -e \' tell application \\\"System Events\\\" to delete login item \\\"{nameof(WalletWasabi)}\\\" \' \"";
public static void ModifyStartupSetting(bool runOnSystemStartup)
{
@@ -69,7 +69,7 @@ namespace WalletWasabi.Fluent.Helpers
WindowStyle = ProcessWindowStyle.Hidden,
FileName = "/bin/bash",
CreateNoWindow = false,
- Arguments = runOnSystemStartup ? AddArgument : DeleteArgument
+ Arguments = runOnSystemStartup ? AddArguments : DeleteArguments
};
using Process? process = Process.Start(processInfo);

Fix comments and rename arguments