fix startup arguments
MODIFY
WalletWasabi.Fluent/Helpers/LinuxStartupHelper.cs
WalletWasabi.Fluent/Helpers/LinuxStartupHelper.cs
@@ -17,6 +17,8 @@ public static class LinuxStartupHelper
{
string pathToExec = EnvironmentHelpers.GetExecutablePath();
+ string silentArg = pathToExec + " --silent";
+
IoHelpers.EnsureFileExists(pathToExec);
string fileContents = string.Join(
@@ -24,7 +26,7 @@ public static class LinuxStartupHelper
"[Desktop Entry]",
$"Name={Constants.AppName}",
"Type=Application",
- $"Exec={pathToExec}",
+ $"Exec={silentArg}",
"Hidden=false",
"Terminal=false",
"X-GNOME-Autostart-enabled=true");

MODIFY
WalletWasabi.Fluent/Helpers/WindowsStartupHelper.cs
WalletWasabi.Fluent/Helpers/WindowsStartupHelper.cs
@@ -18,6 +18,8 @@ public static class WindowsStartupHelper
string pathToExeFile = EnvironmentHelpers.GetExecutablePath();
+ string silentArg = pathToExeFile + " --silent";
+
if (!File.Exists(pathToExeFile))
{
throw new InvalidOperationException($"Path: {pathToExeFile} does not exist.");
@@ -26,7 +28,7 @@ public static class WindowsStartupHelper
using RegistryKey key = Registry.CurrentUser.OpenSubKey(KeyPath, writable: true) ?? throw new InvalidOperationException("Registry operation failed.");
if (runOnSystemStartup)
{
- key.SetValue(nameof(WalletWasabi), pathToExeFile);
+ key.SetValue(nameof(WalletWasabi), silentArg);
}
else
{

fix startup arguments