Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing
|Summary:||soffice shell script inoperative with update-alternatives|
|Component:||code||Assignee:||AOO issues mailing list <issues>|
|Status:||ACCEPTED ---||QA Contact:|
|Priority:||P4||CC:||issues, kay.ramme, olaf-openoffice|
|Issue Type:||DEFECT||Latest Confirmation in:||---|
Description mdaniel 2004-12-21 05:49:01 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; ..."
Comment 1 mdaniel 2004-12-21 07:31:34 UTC
Created attachment 20707 [details] Patch against soffice shell script
Comment 2 nospam4obr 2004-12-21 10:22:51 UTC
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.
Comment 3 Olaf Felka 2004-12-21 12:04:41 UTC
Comment 4 nospam4obr 2005-03-02 14:31:49 UTC
Comment 5 nospam4obr 2005-05-13 06:35:16 UTC
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.
Comment 6 nospam4obr 2008-07-22 08:40:29 UTC
re-assigned to the de-facto maintainer of soffice ;-).
Comment 7 Stephan Bergmann 2008-07-22 08:56:24 UTC