Public bug reported:

Binary package hint: openoffice.org

a) soffice -headless ... fails to start if a headed instance of OOo is
running (and vice versa). This is probably as-designed but is still
annoying.

b) What i'm really writing about:

i have a headed instance of OOo running and also want to run it headless
so i can export some docs using JODConverter via a Makefile. That cannot
be scripted properly because soffice always returns success (0), even on
error.

First, demonstrate that i have OOo running:
[EMAIL PROTECTED]: # ps -ef | grep soffice | wc -l
3

Now start up -headless:
[EMAIL PROTECTED]: # soffice -headless -accept='socket,port=8100;urp;'
[EMAIL PROTECTED]: # echo $?
0

Count our number of processes again:
[EMAIL PROTECTED]: # ps -ef | grep soffice | wc -l
3      <---- still have 3 processes, which means the -headless did not start

The bug is that the -headless instance failed to start (because of
behaviour (a) mentioned above) yet still returned 0, indicating success.
This breaks scriptability of the headless feature, e.g. from Makefiles,
because 0 is intended to mean success and non-zero means error.

My initial thought was the the problem is in the /usr/bin/soffice
wrapper script, but this problem can be duplicated by directly running
the soffice.bin binary:

/usr/lib/openoffice/program/soffice.bin -headless 
-accept='socket,port=8100;urp;'
echo $?
0

** Affects: openoffice.org (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
OOo started with -headless exits with 0 on errors, breaking scriptability
https://bugs.launchpad.net/bugs/119180
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to