Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


Thank you Tor for the clarification.

What I want to achieve is to use the Python UNO bridge to access multiple Writer documents at the 
same time.

If that can be achieved by running a single LO process (soffice.bin) then that works for me: 
  - How does that approach scale when I open many Writers? (See this post re performance and 
scaling: https://forum.openoffice.org/en/forum/viewtopic.php?f=6&t=74002 )
  - Should I keep the LO process alive over long periods of time and then open/close Writer 
documents as needed? (See this post re the Office Server mode: 
https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=75523 )

If I need to spawn processes with separate “user installation” directories, are you talking about 
the -env:UserInstallation command line argument?

Thank you!
Jens


On Oct 19, 2017, at 16:31, Tor Lillqvist <tml@iki.fi> wrote:

You are using confusing terminology. "Spawn" is usually used in a software context to mean 
starting a new process running another program, what is on POSIX systems done using the fork() 
and exec() family of system calls, and on Windows using CreateProcess(). On the other hand, 
"Writer" is not a program by itself but (as you say) just one kind of document window that the 
real LibreOffice process (soffice.bin) displays, and a single soffice.bin process can have any 
number of Writer, Calc, Impress etc document windows open simultaneously.

I.e., are you asking how to spawn multiple soffice.bin processes, or how to open multiple Writer 
documents, at the same time?

For the first case, you need to spawn the processes with separate "user installation" 
directories. For the second case, that should be what normally happens.

--tml


--
Jens Tröger
http://savage.light-speed.de/


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.