[Slackbuilds-users] libreoffice.SlackBuild: request for enhancement

Sebastien BALLET slacker6896 at gmail.com
Wed Oct 17 15:37:30 UTC 2018


The .desktop files installed in /opt/libreoffice<VER>/share/xdg and
symlinks to that files in /usr/share/applications have version number
in their name (ex libreoffice6.1-writer.desktop) which force user to
re-create/update any links/reference (placed on KDE desktop for instance)
to that files on each libreoffice version number increment.

To avoid that, the patch below (also in attachment) creates symlinks
without libreoffice version number in their names in

--- libreoffice.SlackBuild.orig    2018-09-29 02:53:10.000000000 +0200
+++ libreoffice.SlackBuild    2018-10-17 17:29:22.368225124 +0200
@@ -130,6 +130,17 @@
 ln -sf ../../opt/libreoffice$SRCSHORT/program/swriter  lowriter

 cd -
+# creates symlinks in /usr/share/applications to libreoffice .desktop
+# (found in /opt/libreoffice<version>/share/xdg) without libreoffice
+# number in symlink names.
+cd $PKG/usr/share/applications
+  for APP in base calc draw impress math startcenter writer ; do
+    ln -sf ../../../opt/libreoffice$SRCSHORT/share/xdg/$APP.desktop
+  done
+cd -
 # Remove DejaVu and Liberation fonts - these are included in other packages
 rm -f

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20181017/e0c82006/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libreoffice-symlinks-no-version.patch
Type: text/x-patch
Size: 775 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20181017/e0c82006/attachment.bin>

More information about the SlackBuilds-users mailing list