Apache OpenOffice (AOO) Bugzilla – Issue 39367
soffice shell script inoperative with update-alternatives
Last modified: 2017-05-20 10:55:44 UTC
# update-alternatives --install /usr/bin/soffice soffice /opt/openoffice.org1.9.65/program/soffice $ /usr/bin/soffice /usr/bin/soffice: line 224: /etc/alternatives/pagein: No such file or directory /usr/bin/soffice: line 235: /etc/alternatives/soffice.bin: No such file or directory I'll attach a patch that works for me after I submit this. The short version is change the "if -h $0" test to "sd_script=$0; while -h $sd_script; ..."
Created attachment 20707 [details] Patch against soffice shell script
I doubt the $0 mechanism is worth a while loop in the startup script. With the introduction of pagein the "one script fits all binaries approach" doesn't seem to be appropriate any more. However, since the script has been this way for ages and you are the first one (I know of) who reports the problem, I think P4 is more accurate.
assigning
Set target.
The desktop integration has moved towards more specific starter scripts "openoffice.org-1.9", which should work with update-alternatives. Changes to the soffice start script are somehow problematic, too much risk to break anything. Maybe we should move most of the content from soffice to a new script, which will not get referenced from /usr/bin, but this is nothing I want to do for this release.
re-assigned to the de-facto maintainer of soffice ;-).
.
Reset assigne to the default "issues@openoffice.apache.org".