https://bugs.documentfoundation.org/show_bug.cgi?id=92627

--- Comment #3 from [email protected] ---
Problem solved, LO 4.4 does not have the bug.
Aure concern impossible to pass several option bean
(-Dcom.sun.star.officebean.Options="--norestore
-env:UserInstallation=file://$HOME/.myconf/bureautissimo")

, here is a correction:

svn diff -r 28332 officebean/com/sun/star/comp/beans/LocalOfficeConnection.java
Index: officebean/com/sun/star/comp/beans/LocalOfficeConnection.java
===================================================================
--- officebean/com/sun/star/comp/beans/LocalOfficeConnection.java    (révision
28332)
+++ officebean/com/sun/star/comp/beans/LocalOfficeConnection.java    (copie de
travail)
@@ -683,6 +683,7 @@
         {
             int nSizeCmdArray = 4;
             String sOption = null;
+            String[] aOption = null;
             // examine if user specified command-line options in system
properties.
             // We may offer later a more sophisticated way of providing
options if
             // the need arises. Currently this is intended to ease the pain
during
@@ -692,7 +693,10 @@
             try {
                 sOption =
System.getProperty("com.sun.star.officebean.Options");
                 if (sOption != null)
-                    nSizeCmdArray ++;
+                                {
+                                    aOption = sOption.split(" ");
+                                    nSizeCmdArray += aOption.length;
+                                }
             } catch (java.lang.SecurityException e)
             {
                 e.printStackTrace();
@@ -717,7 +721,11 @@
                 throw new java.io.IOException( "not connection specified" );

             if (sOption != null)
-                cmdArray[4] = sOption;
+                        {
+                            int i = 0;
+                            for (i = 0; i < aOption.length; i++)
+                                cmdArray[4 + i] = aOption[i];
+                        }

             // start process
             mProcess = Runtime.getRuntime().exec(cmdArray);

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to