diff --git a/app/src/main/java/io/xpipe/app/core/AppTrayIcon.java b/app/src/main/java/io/xpipe/app/core/AppTrayIcon.java index 5d1318b7a..a7c39905c 100644 --- a/app/src/main/java/io/xpipe/app/core/AppTrayIcon.java +++ b/app/src/main/java/io/xpipe/app/core/AppTrayIcon.java @@ -4,11 +4,11 @@ import io.xpipe.app.core.mode.OperationMode; import io.xpipe.app.issue.ErrorEvent; import io.xpipe.core.process.OsType; +import javax.imageio.ImageIO; import java.awt.*; import java.io.IOException; import java.lang.reflect.Field; import java.net.URL; -import javax.imageio.ImageIO; public class AppTrayIcon { @@ -90,7 +90,8 @@ public class AppTrayIcon { tray.add(this.trayIcon); fixBackground(); } catch (Exception e) { - ErrorEvent.fromThrowable("Unable to add TrayIcon", e).handle(); + // This can sometimes fail on Linux + ErrorEvent.fromThrowable("Unable to add TrayIcon", e).expected().handle(); } }); } diff --git a/app/src/main/java/io/xpipe/app/update/AppDownloads.java b/app/src/main/java/io/xpipe/app/update/AppDownloads.java index 27fa9550b..9e5f03064 100644 --- a/app/src/main/java/io/xpipe/app/update/AppDownloads.java +++ b/app/src/main/java/io/xpipe/app/update/AppDownloads.java @@ -91,7 +91,7 @@ public class AppDownloads { var changelog = json.required("changelog").asText(); return Optional.of(changelog); } catch (Throwable t) { - ErrorEvent.fromThrowable(t).omit().handle(); + ErrorEvent.fromThrowable(t).omit().expected().handle(); } try {