Sebastien BALLET
2018-10-17 15:37:30 UTC
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<---------------------------------------------------------------------------------------------
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
SeB