diff --git a/app/src/main/java/io/xpipe/app/core/AppBundledFonts.java b/app/src/main/java/io/xpipe/app/core/AppBundledFonts.java index a3bc58853..92c77e339 100644 --- a/app/src/main/java/io/xpipe/app/core/AppBundledFonts.java +++ b/app/src/main/java/io/xpipe/app/core/AppBundledFonts.java @@ -26,7 +26,7 @@ public class AppBundledFonts { var proc = fc.start(); var out = new String(proc.getInputStream().readAllBytes()); proc.waitFor(1, TimeUnit.SECONDS); - return proc.exitValue() == 0 && !out.isEmpty(); + return proc.exitValue() == 0 && !out.isBlank(); } catch (Exception e) { return false; } diff --git a/app/src/main/java/io/xpipe/app/core/check/AppFontCheck.java b/app/src/main/java/io/xpipe/app/core/check/AppFontCheck.java deleted file mode 100644 index 66344f4c2..000000000 --- a/app/src/main/java/io/xpipe/app/core/check/AppFontCheck.java +++ /dev/null @@ -1,15 +0,0 @@ -package io.xpipe.app.core.check; - -import javafx.scene.text.Font; - -public class AppFontCheck { - - public static void check() { - try { - Font.getDefault(); - } catch (Throwable t) { - throw new IllegalStateException("Unable to load any fonts. Check whether your system is properly configured with fontconfig and you have any fonts installed", t); - } - } - -} diff --git a/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java b/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java index a0cf06d02..e378acdd4 100644 --- a/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java +++ b/app/src/main/java/io/xpipe/app/core/mode/OperationMode.java @@ -1,7 +1,6 @@ package io.xpipe.app.core.mode; import io.xpipe.app.core.*; -import io.xpipe.app.core.check.AppFontCheck; import io.xpipe.app.core.check.AppTempCheck; import io.xpipe.app.core.check.AppUserDirectoryCheck; import io.xpipe.app.ext.DataStoreProviders; @@ -105,7 +104,6 @@ public abstract class OperationMode { AppProperties.logSystemProperties(); AppProperties.logPassedProperties(); XPipeSystemId.init(); - AppFontCheck.check(); TrackEvent.info("mode", "Finished initial setup"); } catch (Throwable ex) { ErrorEvent.fromThrowable(ex).term().handle();