create java user configuration at first start even in MW mode 15/21715/2
Antoine ELIAS [Fri, 26 Mar 2021 13:38:21 +0000 (14:38 +0100)]
Change-Id: I287f5410c43628751bd2eb6b8868458e8d2d4507

scilab/modules/core/src/java/org/scilab/modules/core/Scilab.java

index f9b5bf6..01640ab 100644 (file)
@@ -145,9 +145,9 @@ public class Scilab {
          * (needed when building the documentation under *ux)
          */
         if (mode != 1 && System.getenv("SCI_JAVA_ENABLE_HEADLESS") == null) {
+
             /* http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/plaf.html */
             try {
-
                 String scilabLookAndFeel = "javax.swing.plaf.metal.MetalLookAndFeel";
 
                 if (OS.get() == OS.WINDOWS) {
@@ -209,6 +209,9 @@ public class Scilab {
 
             mainView = SwingScilabWindow.allScilabWindows.get(consoleTab.getParentWindowId());
         } else {
+            if (mode == 3) { //NW
+                ConfigManager.createUserCopy();
+            }
             GraphicController.getController().askObject(Type.CONSOLE);
         }
     }