We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fa63f6a + 53dc652 commit 28045f5Copy full SHA for 28045f5
1 file changed
src/SshAgentEcho.Gui/Program.cs
@@ -21,8 +21,16 @@ public static void Main(string[] args) {
21
return;
22
}
23
24
- BuildAvaloniaApp()
25
- .StartWithClassicDesktopLifetime(args);
+ try {
+ BuildAvaloniaApp()
26
+ .StartWithClassicDesktopLifetime(args);
27
+ } catch (NullReferenceException ex) when (ex.StackTrace?.Contains("DBusMenu") == true || ex.StackTrace?.Contains("Tmds.DBus") == true) {
28
+ Console.WriteLine($"Suppressing DBus shutdown error: {ex.Message}");
29
+ } catch (Exception ex) {
30
+ Console.WriteLine($"Unhandled exception: {ex}");
31
+ } finally {
32
+ _mutex.ReleaseMutex();
33
+ }
34
35
36
// Avalonia configuration, don't remove; also used by visual designer.
0 commit comments