Public bug reported: 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) ** Affects: libreoffice (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug precise -- 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/1258901 Title: package menu entries should use Exec=/bin/sh /usr/lib/libreoffice/program/soffice --writer %U Status in “libreoffice” package in Ubuntu: New 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) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1258901/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp