mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +00:00
Remove font check
This commit is contained in:
parent
8d080bee1e
commit
0fef5b0b9a
3 changed files with 1 additions and 18 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue