desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #17852
[Bug 452043] Re: [Upstream] Menu entries should use Exec=/bin/sh /usr/lib/libreoffice/program/soffice -writer %U
** Summary changed:
- [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
** Also affects: libreoffice (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
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 additionnal load
+ Moreover, not using direct file path infers a useless additional load
due to the lookup time.
- For example, the Open Office Calc menu entry invokes the below command:
+ With the Ubuntu 11.04 (natty) package, the menu entry description provides the
+ below command :
---
- ooffice -calc %F
+ j@lu64:~$ grep -i exec /usr/share/applications/libreoffice-writer.desktop
+ Exec=libreoffice -writer %U
+ Exec=libreoffice -writer %U
+ j@lu64:~$
---
- This invocation performs the below pseudo-instructions:
+ The above command line is equivalent to the below pseudo instructions :
---
- which ooffice
- dash /usr/bin/ooffice
- dash /usr/lib/openoffice/program/soffice -calc %F
+ 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
---
- It would be more efficient to have the below direct invocation into the menu entry:
+ I think the /usr/share/applications/libreoffice-writer.desktop file should
+ provide the below command line instead :
---
- /usr/lib/openoffice/program/soffice -calc %F
+ 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
+ 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
--
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:
Unknown
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