Remove font check

This commit is contained in:
crschnick 2024-01-03 07:06:35 +00:00
parent 8d080bee1e
commit 0fef5b0b9a
3 changed files with 1 additions and 18 deletions

View file

@ -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;
}

View file

@ -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);
}
}
}

View file

@ -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();