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

--- Comment #4 from [email protected] ---
I think a more better solution were to use subprocess instead of the "old"
os.spawn. So we need not care about quoting (and to set it as first arg, too).

add to imports:
from subprocess import Popen

Then we need to replace the process creation:
replace:
    os.spawnv(os.P_NOWAIT, sOffice, cmdArray)
with:
    Popen( cmdArray )


Or alternativ (because the first arg is the path to use - it's cleaner):
replace:
    cmdArray = (sOffice, "--nologo", "--nodefault",
"".join(["--accept=pipe,name=", sPipeName, ";urp;"]))
    os.spawnv(os.P_NOWAIT, sOffice, cmdArray)
with:
    cmdArray = ("--nologo", "--nodefault", "".join(["--accept=pipe,name=",
sPipeName, ";urp;"]))
    Popen( (sOffice,) + cmdArray )


Hope this helps...

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

Reply via email to