demo_gui() fixed for some Linux (w/o copyfile)
[scilab.git] / scilab / modules / demo_tools / macros / demo_gui.sci
index b0b3644..0e65bc7 100644 (file)
@@ -55,7 +55,7 @@ function demo_gui()
     File2 = TMPDIR + "/demo_gui_dockable.xml";
     if r=="checked" then
         if ~isfile(File2) then
-            r = copyfile(File, File2);
+            mputl(mgetl(File), File2); // copyfile() sometimes keeps the no-writable status
             doc = xmlRead(File2);
             xmlSetValues("/scilabgui/figure", ..
                          ["dockable" "on"