[Libreoffice-bugs] [Bug 116156] Python // officehelper.py misbehaves since 5.3.7

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jun 14 09:57:34 UTC 2018


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

--- Comment #2 from mini-matze at web.de ---
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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180614/1c96028c/attachment.html>


More information about the Libreoffice-bugs mailing list