mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-09-27 10:55:52 +00:00
Remove font check
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user