Issue 39367

Summary: soffice shell script inoperative with update-alternatives
Product: Installation Reporter: mdaniel <openoffice>
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P4 CC: issues, kay.ramme, olaf-openoffice
Version: 680m65   
Target Milestone: ---   
Hardware: PC   
OS: Linux, all   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Patch against soffice shell script none

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
assigning
Comment 4 nospam4obr 2005-03-02 14:31:49 UTC
Set target.
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
.
Comment 8 Marcus 2017-05-20 10:55:44 UTC
Reset assigne to the default "issues@openoffice.apache.org".