package menu entries should use Exec=/bin/sh /usr/lib/libreoffice/program/soffice --writer %U

Bug #1258901 reported by Jérôme
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

This bug isn't upstream but it is relevant to the Ubuntu packaging.

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 Xubuntu 12.04 (precise) package, the menu entry description provides the
below command :
---
j@portable:~$ grep -i exec /usr/share/applications/libreoffice-writer.desktop
Exec=libreoffice --writer %U
Exec=libreoffice --writer %U
j@portable:~$
---

The above command line is equivalent to the below pseudo instructions :
---
j@portable:~$ which libreoffice
/usr/bin/libreoffice
j@portable:~$ file /usr/bin/libreoffice
/usr/bin/libreoffice: symbolic link to `../lib/libreoffice/program/soffice'
j@portable:~$ file /usr/lib/libreoffice/program/soffice
/usr/lib/libreoffice/program/soffice: POSIX shell script, ASCII text executable
j@portable:~$ /usr/lib/libreoffice/program/soffice --writer
---

I think the /usr/share/applications/libreoffice-writer.desktop file should
provide the below command line instead :
---
Exec=/bin/sh /usr/lib/libreoffice/program/soffice --writer %U
---

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libreoffice 1:3.5.7-0ubuntu5
ProcVersionSignature: Ubuntu 3.2.0-57.87-generic 3.2.52
Uname: Linux 3.2.0-57-generic x86_64
NonfreeKernelModules: wl
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Sun Dec 8 11:44:36 2013
InstallationMedia: Xubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820)
MarkForUpload: True
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jérôme (jerome-bouat) wrote :
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

This release of Ubuntu is no longer receiving maintenance updates. If this is still an issue on a maintained version of Ubuntu please let us know.

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for libreoffice (Ubuntu) because there has been no activity for 60 days.]

Changed in libreoffice (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.