[Slackbuilds-users] libreoffice.SlackBuild: request for enhancement
Sebastien BALLET
slacker6896 at gmail.com
Wed Oct 17 15:37:30 UTC 2018
Hello,
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
/usr/share/applications.
8<---------------------------------------------------------------------------------------------
--- 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
files
+# (found in /opt/libreoffice<version>/share/xdg) without libreoffice
version
+# 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
$PRGNAM-$APP.desktop
+ done
+cd -
+
# Remove DejaVu and Liberation fonts - these are included in other packages
rm -f
opt/libreoffice$SRCSHORT/share/fonts/truetype/{DejaVu,Liberation}*.ttf
8<---------------------------------------------------------------------------------------------
--
SeB
-------------- 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