← 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

 

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

** Changed in: df-libreoffice
   Importance: Unknown => Medium

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