consistent string
MODIFY
WalletWasabi.Fluent/Helpers/LinuxStartupHelper.cs
WalletWasabi.Fluent/Helpers/LinuxStartupHelper.cs
@@ -17,7 +17,7 @@ public static class LinuxStartupHelper
{
string pathToExec = EnvironmentHelpers.GetExecutablePath();
- string pathToExecWithArgs = string.Concat(pathToExec, " ", StartupHelper.SilentArgument);
+ string pathToExecWithArgs = $"{pathToExec} {StartupHelper.SilentArgument}";
IoHelpers.EnsureFileExists(pathToExec);

MODIFY
WalletWasabi.Fluent/Helpers/WindowsStartupHelper.cs
WalletWasabi.Fluent/Helpers/WindowsStartupHelper.cs
@@ -18,7 +18,7 @@ public static class WindowsStartupHelper
string pathToExeFile = EnvironmentHelpers.GetExecutablePath();
- string silentArg = pathToExeFile + " --silent";
+ string pathToExecWithArgs = $"{pathToExeFile} {StartupHelper.SilentArgument}";
if (!File.Exists(pathToExeFile))
{
@@ -28,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), silentArg);
+ key.SetValue(nameof(WalletWasabi), pathToExecWithArgs);
}
else
{

MODIFY
WalletWasabi.Tests/Helpers/LinuxStartupTestHelper.cs
WalletWasabi.Tests/Helpers/LinuxStartupTestHelper.cs
@@ -13,7 +13,7 @@ public static class LinuxStartupTestHelper
"[Desktop Entry]",
$"Name={Constants.AppName}",
"Type=Application",
- $"Exec={EnvironmentHelpers.GetExecutablePath() + " " + StartupHelper.SilentArgument}",
+ $"Exec={EnvironmentHelpers.GetExecutablePath()} {StartupHelper.SilentArgument}",
"Hidden=false",
"Terminal=false",
"X-GNOME-Autostart-enabled=true");

consistent string