Remove CrashReportCommand
MODIFY
WalletWasabi.Fluent.Desktop/Program.cs
WalletWasabi.Fluent.Desktop/Program.cs
@@ -98,8 +98,7 @@ namespace WalletWasabi.Fluent.Desktop
var executionTask = interpreter.ExecuteCommandsAsync(
args,
new MixerCommand(daemon),
- new PasswordFinderCommand(Global!.WalletManager),
- new CrashReportCommand(CrashReporter));
+ new PasswordFinderCommand(Global!.WalletManager));
return executionTask.GetAwaiter().GetResult();
}

ADD
WalletWasabi.Fluent.Desktop/Properties/launchSettings.json
+{
+ "profiles": {
+ "WalletWasabi.Fluent.Desktop": {
+ "commandName": "Project",
+ "commandLineArgs": "crashreport -attempt=\"1\" -exception=\"eyJFeGNlcHRpb25UeXBlIjoiU3lzdGVtLkV4Y2VwdGlvbiIsIk1lc3NhZ2UiOiJMb3JlbSBpcHN1bSBkb2xvciBzaXQgYW1ldCwgY29uc2VjdGV0dXIgYWRpcGlzY2luZyBlbGl0LiBQZWxsZW50ZXNxdWUgaW4gdWx0cmljZXMgZG9sb3IsIGFjIG1hdHRpcyB2ZWxpdC4gQ3VyYWJpdHVyIGV0IGZhdWNpYnVzIGV4LCBlZ2V0IHNvbGxpY2l0dWRpbiBpcHN1bS4gTmFtIG5pc2kgcHVydXMsIHBoYXJldHJhIGFjIGlhY3VsaXMgbm9uLCB2ZWhpY3VsYSBpZCBzZW0uIFByb2luIG9ybmFyZSBzY2VsZXJpc3F1ZSBpcHN1bSwgaWQgYmliZW5kdW0gbWFnbmEuIE51bmMgZXQgdmVzdGlidWx1bSBsZW8uIE51bmMgc2VkIGZpbmlidXMgbmlzaS4gVml2YW11cyB1bHRyaWNpZXMgb2RpbyBsZWN0dXMsIGlkIHJ1dHJ1bSBsZWN0dXMgZWxlaWZlbmQgaW4uIFByYWVzZW50IHNpdCBhbWV0IG1pIGVnZXQgdmVsaXQgZmluaWJ1cyBkaWN0dW0gYSBub24gdHVycGlzLiBBZW5lYW4gdGluY2lkdW50IG5lYyByaXN1cyBldCBlZ2VzdGFzLiIsIlN0YWNrVHJhY2UiOiIgICBhdCBXYWxsZXRXYXNhYmkuRmx1ZW50LkRlc2t0b3AuUHJvZ3JhbS5NYWluKFN0cmluZ1tdIGFyZ3MpIGluIEM6XFx3b3JrXFxXYWxsZXRXYXNhYmlcXFdhbGxldFdhc2FiaS5GbHVlbnQuRGVza3RvcFxcUHJvZ3JhbS5jczpsaW5lIDU5IiwiSW5uZXJFeGNlcHRpb24iOm51bGx9\""
+ }
+ }
+}
\ No newline at end of file

MODIFY
WalletWasabi.Gui/CommandLine/CommandInterpreter.cs
WalletWasabi.Gui/CommandLine/CommandInterpreter.cs
@@ -18,7 +18,7 @@ namespace WalletWasabi.Gui.CommandLine
private TextWriter Error { get; }
/// <returns>If the GUI should run or not.</returns>
- public async Task<bool> ExecuteCommandsAsync(string[] args, Command mixerCommand, Command passwordFinderCommand, Command crashReportedCommand)
+ public async Task<bool> ExecuteCommandsAsync(string[] args, Command mixerCommand, Command passwordFinderCommand)
{
var showHelp = false;
var showVersion = false;
@@ -39,8 +39,7 @@ namespace WalletWasabi.Gui.CommandLine
"Available commands are:",
"",
mixerCommand,
- passwordFinderCommand,
- crashReportedCommand
+ passwordFinderCommand
};
EnsureBackwardCompatibilityWithOldParameters(ref args);

DELETE
WalletWasabi.Gui/CommandLine/CrashReportCommand.cs
-using Mono.Options;
-using System;
-using System.Collections.Generic;
-using System.Threading.Tasks;
-using WalletWasabi.Helpers;
-using WalletWasabi.Gui.CrashReport;
-
-namespace WalletWasabi.Gui.CommandLine
-{
- internal class CrashReportCommand : Command
- {
- public CrashReportCommand(CrashReporter crashReporter) : base("crashreport", "Activates the internal crash reporting mechanism.")
- {
- CrashReporter = Guard.NotNull(nameof(crashReporter), crashReporter);
-
- Options = new OptionSet()
- {
- { "attempt=", "Number of attempts at starting the crash reporter.", x => Attempts = x },
- { "exception=", "The serialized exception from the previous crash.", x => ExceptionString = x },
- };
- }
-
- public CrashReporter CrashReporter { get; }
- public string Attempts { get; private set; }
- public string ExceptionString { get; private set; }
-
- public override Task<int> InvokeAsync(IEnumerable<string> args)
- {
- try
- {
- Options.Parse(args);
-
- CrashReporter.SetShowCrashReport(ExceptionString, int.Parse(Attempts));
- }
- catch (Exception ex)
- {
- return Task.FromException<int>(ex);
- }
-
- return Task.FromResult(0);
- }
- }
-}

MODIFY
WalletWasabi.Gui/Program.cs
WalletWasabi.Gui/Program.cs
@@ -94,8 +94,7 @@ namespace WalletWasabi.Gui
var executionTask = interpreter.ExecuteCommandsAsync(
args,
new MixerCommand(daemon),
- new PasswordFinderCommand(Global.WalletManager),
- new CrashReportCommand(CrashReporter));
+ new PasswordFinderCommand(Global.WalletManager));
return executionTask.GetAwaiter().GetResult();
}

Remove CrashReportCommand