Browse Source

REPORT-80491 linux设计器调用系统文件夹,设计器闪退

new-design
Destiny.Lin 2 years ago
parent
commit
177af481be
  1. 8
      designer-base/src/main/java/com/fr/design/os/impl/SupportOSImpl.java

8
designer-base/src/main/java/com/fr/design/os/impl/SupportOSImpl.java

@ -152,7 +152,13 @@ public enum SupportOSImpl implements SupportOS {
@Override
public boolean support() {
return (OperatingSystem.isLinux() && Arch.getArch() == Arch.ARM) || MACOS_12_VERSION_ADAPTER.support();
boolean javafxExist = true;
try {
Class.forName("javafx.stage.FileChooser");
} catch (ClassNotFoundException e) {
javafxExist = false;
}
return !javafxExist || (OperatingSystem.isLinux() && Arch.getArch() == Arch.ARM) || MACOS_12_VERSION_ADAPTER.support();
}
},

Loading…
Cancel
Save