Issue 106386 - menu entries should use directly /opt/openoffice.org3/program/soffice
Summary: menu entries should use directly /opt/openoffice.org3/program/soffice
Status: UNCONFIRMED
Alias: None
Product: performance
Classification: Code
Component: www (show other issues)
Version: current
Hardware: Unknown Linux, all
: P3 Trivial (vote)
Target Milestone: not determined
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 15:47 UTC by sophia
Modified: 2013-02-07 22:39 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description sophia 2009-10-28 15:47:17 UTC
I discovered that the OOo_3.1.1_LinuxX86-64_install_fr_deb.tar.gz Debian
packages could be tweaked for a faster cold start.

The openoffice.org3_3.1.1-19_amd64.deb package provides the below files:
/opt/openoffice.org3/program/soffice
/opt/openoffice.org3/share/xdg/*.desktop

The /opt/openoffice.org3/share/xdg/writer.desktop file defines the below launch
command:
-----
Exec=openoffice.org3 -writer %U
-----

The above command will execute the below pseudo instructions:
-----
which openoffice.org3
file /usr/bin/openoffice.org3
ls -l /bin/sh
/bin/dash exec /usr/bin/openoffice.org3
file /opt/openoffice.org3/program/soffice
ls -l /bin/sh
/bin/dash /opt/openoffice.org3/program/soffice -writer %U
-----

The default packages could replace the above pseudo code by the following pseudo
code:
-----
ls -l /bin/sh
/bin/dash /opt/openoffice.org3/program/soffice -writer %U
-----

This could be performed by setting the below command in the
/opt/openoffice.org3/share/xdg/writer.desktop file:
-----
Exec=/bin/sh /opt/openoffice.org3/program/soffice -writer %U
-----


The below Ubuntu bug report shows that removing all those indirect calls speeds
up the cold startup time by more than 20% :

https://bugs.launchpad.net/ubuntu/+source/openoffice.org/+bug/452043
Comment 1 sophia 2010-05-16 13:23:18 UTC
Still occurs with 3.2 version.