Re: Bug 37531 - Libreoffice will not run in "batch mode" when there is another instance open (patch)

2012-03-19 Thread Stephan Bergmann

On 03/19/2012 01:38 PM, Jason Tang wrote:

Regarding Bug 37531
(https://bugs.freedesktop.org/show_bug.cgi?id=37531), here is a patch
that will append the current PID to the IPC pipe and allow multiple
instances of LO to run.  In particular, this facilitates batch file
conversions from the CLI while a GUI instance is running.

Based on what I've seen of the code, it would appear that multiple
instances should work without this trickery - however, that does not
seem to be the case at present.

Feedback appreciated.


No, this will not work.  Many places in the LO code base assume that 
there is only one soffice.bin process ever concurrently modifying a LO 
user configuration (the directory tree at ~/.config/libreoffice/3/user 
on Linux, etc.). -- That is the main reason why there is code to detect 
an already running instance and load any work off to it in the first place.


Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Bug 37531 - Libreoffice will not run in "batch mode" when there is another instance open (patch)

2012-03-19 Thread Jason Tang
Greetings,

Regarding Bug 37531 (https://bugs.freedesktop.org/show_bug.cgi?id=37531),
here is a patch that will append the current PID to the IPC pipe and allow
multiple instances of LO to run.  In particular, this facilitates batch
file conversions from the CLI while a GUI instance is running.

Based on what I've seen of the code, it would appear that multiple
instances should work without this trickery - however, that does not seem
to be the case at present.

Feedback appreciated.

-- 
*Jason Tang*


0001-Resolves-37531-Appends-PID-to-named-pipe-path.patch
Description: Binary data
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice