<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Python // officehelper.py misbehaves since 5.3.7"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116156#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Python // officehelper.py misbehaves since 5.3.7"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116156">bug 116156</a>
              from <span class="vcard"><a class="email" href="mailto:mini-matze@web.de" title="mini-matze@web.de">mini-matze@web.de</a>
</span></b>
        <pre>I could confirm the bug. I don't know how it could work before, but the bug is
the first given parameter to spawnv which is not quoted (and the path has
spaces in windows).

If you change the line

cmdArray = (sOffice, "--nologo", "--nodefault", "".join(["--accept=pipe,name=",
sPipeName, ";urp;"]))

to

cmdArray = ('"{}"'.format(sOffice), "--nologo", "--nodefault",
"".join(["--accept=pipe,name=", sPipeName, ";urp;"]))

it works fine. I don't know how its with linux. When it's there a problem, you
could add a sOfficeQuoted variabel and decide in the "if" above (for the
extension) to quote or not the "sOffice" variable!

@Buovjaga
You should use the python.exe in the folder "C:\Program Files (x86)\LibreOffice
5\program"! Not the one in the subfolder bin (this is called by the oher
python.exe with needed environment variables)</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>