The new 3.5.0rc2 version decreased the number of indirection. However we
could go further.

Menu entry :
---
j@j-K64:~$ grep -i exec /usr/share/applications/libreoffice3.5-writer.desktop 
Exec=libreoffice3.5 --writer %U
j@j-K64:~$
---

The above command line is equivalent to the below pseudo instructions :
---
j@j-K64:~$ which libreoffice3.5
/usr/bin/libreoffice3.5
j@j-K64:~$ file /usr/bin/libreoffice3.5
/usr/bin/libreoffice3.5: symbolic link to `/opt/libreoffice3.5/program/soffice'
j@j-K64:~$ file /opt/libreoffice3.5/program/soffice
/opt/libreoffice3.5/program/soffice: POSIX shell script text executable
j@j-K64:~$ head -1 /opt/libreoffice3.5/program/soffice
#!/bin/sh
j@j-K64:~$ /bin/sh /opt/libreoffice3.5/program/soffice --writer %U
---

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

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

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to