[Libreoffice-bugs] [Bug 117731] Batch libreoffice --convert-to offers no way to wait for document completion
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Jun 24 20:55:51 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=117731
Richard Elkins <richard.elkins at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Resolution|MOVED |---
Status|RESOLVED |REOPENED
--- Comment #9 from Richard Elkins <richard.elkins at gmail.com> ---
The source code indicates that soffice.bin is the one starting a background
process that does not finish before soffice.bin exits.
See:
https://github.com/LibreOffice/core/blob/master/shell/source/unix/exec/shellexec.cxx
Go to line 218:
OString cmd =
#ifdef LINUX
// avoid blocking (call it in background)
"( " + aBuffer.makeStringAndClear() + " ) &";
#else
aBuffer.makeStringAndClear();
#endif
FILE *pLaunch = popen(cmd.getStr(), "w");
if ( pLaunch != nullptr )
{
if ( 0 == pclose( pLaunch ) )
return;
It would be interesting to understand why execution is in background *only* for
Linux. In my opinion, it is undesirable for command line execution in any O/S.
Other opinions? It is possible for me to be perfectly content with the
artificial `sleep N` in my shell script.
--
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/20190624/e72fa336/attachment-0001.html>
More information about the Libreoffice-bugs
mailing list