[Upstream] Menu entries should use Exec=/bin/sh /usr/lib/libreoffice/program/soffice -writer %U
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LibreOffice |
Won't Fix
|
Medium
|
|||
OpenOffice |
Invalid
|
Undecided
|
Unassigned | ||
libreoffice (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
openoffice.org (Ubuntu) |
Won't Fix
|
Wishlist
|
Unassigned | ||
Bug Description
Binary package hint: openoffice.org
The current menu entries have indirect invocation. This infers intermediate dash shell invocation and thus slowdowns the startup. Moreover, not using direct file path infers a useless additional load due to the lookup time.
With the Ubuntu 11.04 (natty) package, the menu entry description provides the
below command :
---
j@lu64:~$ grep -i exec /usr/share/
Exec=libreoffice -writer %U
Exec=libreoffice -writer %U
j@lu64:~$
---
The above command line is equivalent to the below pseudo instructions :
---
j@lu64:~$ which libreoffice
/usr/bin/
j@lu64:~$ file /usr/bin/
/usr/bin/
j@lu64:~$ cat /usr/bin/
#!/bin/sh
/usr/lib/
j@lu64:~$ file /usr/lib/
/usr/lib/
j@lu64:~$ /bin/sh /usr/lib/
---
I think the /usr/share/
provide the below command line instead :
---
Exec=/bin/sh /usr/lib/
---
Removing all those indirect calls speeds up the cold startup time by more than 20%.
ProblemType: Bug
Architecture: i386
Date: Thu Oct 15 11:56:54 2009
Dependencies:
DistroRelease: Ubuntu 9.10
Package: openoffice.
PackageArchitec
ProcEnviron:
LANG=fr_FR.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: openoffice.org
Uname: Linux 2.6.31-14-generic i686
Changed in openoffice.org (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
summary: |
- menu entries should use /usr/lib/openoffice/program/soffice + [ooo-build] menu entries should use /usr/lib/openoffice/program/soffice |
tags: | added: karmic |
tags: | added: lucid |
Changed in openoffice.org (Ubuntu): | |
status: | Triaged → Won't Fix |
Changed in openoffice: | |
status: | New → Invalid |
summary: |
- [ooo-build] menu entries should use /usr/lib/openoffice/program/soffice + [Upstream] Menu entries should use Exec=/bin/sh + /usr/lib/libreoffice/program/soffice -writer %U |
description: | updated |
Changed in df-libreoffice: | |
importance: | Unknown → Medium |
status: | Unknown → Confirmed |
Changed in df-libreoffice: | |
status: | Confirmed → Incomplete |
Changed in df-libreoffice: | |
status: | Incomplete → Confirmed |
Changed in df-libreoffice: | |
status: | Confirmed → Won't Fix |
Below are the cold start duration (after the computer just restarted, the services like cron are stopped of course).
command: ooffice -writer
duration: 22 seconds (2 tries; 1% variation against the average)
command: /bin/dash /usr/lib/ openoffice/ program/ soffice -writer
duration: 17 seconds (2 tries; <1% variation against the average)
The last command shorten the cold startup time by more than 20% !