← Back to team overview

desktop-packages team mailing list archive

[Bug 452043] Re: [Upstream] Menu entries should use Exec=/bin/sh /usr/lib/libreoffice/program/soffice -writer %U

 

Launchpad has imported 2 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=40964.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-09-17T12:49:55+00:00 Jérôme wrote:

With the Ubuntu 11.04 (natty) package, the menu entry description provides the below command :
---
j@lu64:~$ grep -i exec /usr/share/applications/libreoffice-writer.desktop
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/libreoffice
j@lu64:~$ file /usr/bin/libreoffice
/usr/bin/libreoffice: POSIX shell script text executable
j@lu64:~$ cat /usr/bin/libreoffice
#!/bin/sh
/usr/lib/libreoffice/program/soffice  "$@"
j@lu64:~$ file /usr/lib/libreoffice/program/soffice
/usr/lib/libreoffice/program/soffice: POSIX shell script text executable
j@lu64:~$ /bin/sh /usr/lib/libreoffice/program/soffice -writer %U
---

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
---

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

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/452043/comments/8

------------------------------------------------------------------------
On 2011-12-23T20:39:27+00:00 Björn Michaelsen wrote:

[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org
/RFC-Operation-Spamzilla-tp3607474p3607474.html

Reply at: https://bugs.launchpad.net/df-
libreoffice/+bug/452043/comments/9


** Changed in: df-libreoffice
       Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/452043

Title:
  [Upstream] Menu entries should use Exec=/bin/sh
  /usr/lib/libreoffice/program/soffice -writer %U

Status in LibreOffice Productivity Suite:
  Incomplete
Status in The OpenOffice.org Suite:
  Invalid
Status in “libreoffice” package in Ubuntu:
  New
Status in “openoffice.org” package in Ubuntu:
  Won't Fix

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/applications/libreoffice-writer.desktop
  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/libreoffice
  j@lu64:~$ file /usr/bin/libreoffice
  /usr/bin/libreoffice: POSIX shell script text executable
  j@lu64:~$ cat /usr/bin/libreoffice
  #!/bin/sh
  /usr/lib/libreoffice/program/soffice  "$@"
  j@lu64:~$ file /usr/lib/libreoffice/program/soffice
  /usr/lib/libreoffice/program/soffice: POSIX shell script text executable
  j@lu64:~$ /bin/sh /usr/lib/libreoffice/program/soffice -writer %U
  ---

  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
  ---

  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.org-common 1:3.1.1-4ubuntu1 [modified: var/lib/openoffice/basis3.1/share/config/javasettingsunopkginstall.xml]
  PackageArchitecture: all
  ProcEnviron:
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.31-14.46-generic
  SourcePackage: openoffice.org
  Uname: Linux 2.6.31-14-generic i686

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/452043/+subscriptions