Issue 39367 - soffice shell script inoperative with update-alternatives
Summary: soffice shell script inoperative with update-alternatives
Alias: None
Product: Installation
Classification: Application
Component: code (show other issues)
Version: 680m65
Hardware: PC Linux, all
: P4 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2004-12-21 05:49 UTC by mdaniel
Modified: 2017-05-20 10:55 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---

Patch against soffice shell script (716 bytes, patch)
2004-12-21 07:31 UTC, mdaniel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description mdaniel 2004-12-21 05:49:01 UTC
# update-alternatives --install /usr/bin/soffice 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
Set target.
Comment 5 nospam4obr 2005-05-13 06:35:16 UTC
The desktop integration has moved towards more specific starter scripts
"", 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 "".