On 23/07/2014 JD wrote:
in /usr/bin, I have:
$ ls -l /usr/bin/*office*
lrwxrwxrwx 1 root jd      32 Jul 23 12:18 /usr/bin/ooffice ->
/opt/openoffice4/program/soffice

This is a symlink you put there, right?

However, if I execute /opt/openoffice4/program/soffice from the terminal,
openoffice runs.

The best way to launch OpenOffice is to make a shell alias. If this is unacceptable to you, make a one-line shell script that in turn launches
/opt/openoffice4/program/soffice and it will work too.

So, soffice script takes arg0 and blithely assumes that <arg0>.bin exists,
and tries to exec it.
Why should a script assume that? It is at least dangerous, especially if
executed by a superuser!!

This is how it works indeed: sd_binary=`basename "$0"`.bin
I haven't investigated it further, but if the .bin file needs to be in the (non user-writable) "program" directory too this could be a mitigating factor. Development-related matters are discussed on the dev list http://openoffice.apache.org/mailing-lists.html where you can raise the issue or propose patches to the shell script.

Regards,
  Andrea.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@openoffice.apache.org
For additional commands, e-mail: users-h...@openoffice.apache.org

Reply via email to