<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">Hello,</font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">oh ! I forgot to mention that the patch does not remove the "original" symlinks found in /usr/share/applications (ie. those with version number). If you want to get rid of those and have only "unversioned" symlinks, the patch below (and in attachment) should do the trick:</font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><br></font></div><div class="gmail_default"><span style="font-family:monospace,monospace"><font size="2">8<-------------------------------------------------------------------</font></span></div><div class="gmail_default"><span style="font-family:monospace,monospace"><font size="2">--- libreoffice.SlackBuild.orig 2018-10-17 20:26:30.628052769 +0200<br>+++ libreoffice.SlackBuild 2018-10-17 20:26:30.628052769 +0200<br>@@ -130,6 +130,24 @@<br> ln -sf ../../opt/libreoffice$SRCSHORT/program/swriter lowriter<br> <br> cd -<br>+<br>+# the .desktop files installed in /opt/libreoffice<VER>/share/xdg and <br>+# symlinks to that files in /usr/share/applications have version number <br>+# in their name (ex libreoffice6.1-writer.desktop) which force user to <br>+# re-create/update any link/reference (ex: on KDE/XFCE desktop, in fluxbox<br>+# menu file, in wmalauncher configuration file,...) to that files on each <br>+# libreoffice version number increment. <br>+#<br>+# To avoid that, the code below deletes the "versioned" symlinks <br>+# and creates news without version number in their names.<br>+#<br>+cd $PKG/usr/share/applications<br>+ for APP in base calc draw impress math startcenter writer xsltfilter ; do<br>+ rm -f $PRGNAM$SRCSHORT-$APP.desktop<br>+ ln -sf ../../../opt/libreoffice$SRCSHORT/share/xdg/$APP.desktop $PRGNAM-$APP.desktop<br>+ done<br>+cd -<br>+<br> # Remove DejaVu and Liberation fonts - these are included in other packages<br> rm -f opt/libreoffice$SRCSHORT/share/fonts/truetype/{DejaVu,Liberation}*.ttf<br></font></span></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="font-family:monospace,monospace">8<-------------------------------------------------------------------</span><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">With that, you'll only find "unversioned" symlinks :</font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="font-family:monospace,monospace">8<-------------------------------------------------------------------</span><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2">$ ls -ld /usr/share/applications/libreoffice*.desktop<br>lrwxrwxrwx 1 root root 50 oct. 17 20:22 /usr/share/applications/libreoffice-base.desktop -> ../../../opt/libreoffice6.1/share/xdg/base.desktop<br>lrwxrwxrwx 1 root root 50 oct. 17 20:22 /usr/share/applications/libreoffice-calc.desktop -> ../../../opt/libreoffice6.1/share/xdg/calc.desktop<br>lrwxrwxrwx 1 root root 50 oct. 17 20:22 /usr/share/applications/libreoffice-draw.desktop -> ../../../opt/libreoffice6.1/share/xdg/draw.desktop<br>lrwxrwxrwx 1 root root 53 oct. 17 20:22 /usr/share/applications/libreoffice-impress.desktop -> ../../../opt/libreoffice6.1/share/xdg/impress.desktop<br>lrwxrwxrwx 1 root root 50 oct. 17 20:22 /usr/share/applications/libreoffice-math.desktop -> ../../../opt/libreoffice6.1/share/xdg/math.desktop<br>lrwxrwxrwx 1 root root 57 oct. 17 20:22 /usr/share/applications/libreoffice-startcenter.desktop -> ../../../opt/libreoffice6.1/share/xdg/startcenter.desktop<br>lrwxrwxrwx 1 root root 52 oct. 17 20:22 /usr/share/applications/libreoffice-writer.desktop -> ../../../opt/libreoffice6.1/share/xdg/writer.desktop<br>lrwxrwxrwx 1 root root 56 oct. 17 20:22 /usr/share/applications/libreoffice-xsltfilter.desktop -> ../../../opt/libreoffice6.1/share/xdg/xsltfilter.desktop<br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><span style="font-family:monospace,monospace">8<-------------------------------------------------------------------</span><br></font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"><br></font></div></div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><font size="2"> --</font></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:large"><font size="2">SeB</font><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Le mer. 17 oct. 2018 à 19:13, Willy Sudiarto Raharjo <<a href="mailto:willysr@slackbuilds.org">willysr@slackbuilds.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> The .desktop files installed in /opt/libreoffice<VER>/share/xdg and<br>
> symlinks to that files in /usr/share/applications have version number <br>
> in their name (ex libreoffice6.1-writer.desktop) which force user to<br>
> re-create/update any links/reference (placed on KDE desktop for instance)<br>
> to that files on each libreoffice version number increment.<br>
> <br>
> To avoid that, the patch below (also in attachment) creates symlinks<br>
> without libreoffice version number in their names in<br>
> /usr/share/applications.<br>
<br>
Hi Sebastien<br>
<br>
Thanks for the patch.<br>
I tested here and it creates a duplicate entries since the old .desktop<br>
files are still there :)<br>
<br>
<br>
-- <br>
Willy Sudiarto Raharjo<br>
<br>
_______________________________________________<br>
SlackBuilds-users mailing list<br>
<a href="mailto:SlackBuilds-users@slackbuilds.org" target="_blank">SlackBuilds-users@slackbuilds.org</a><br>
<a href="https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users</a><br>
Archives - <a href="https://lists.slackbuilds.org/pipermail/slackbuilds-users/" rel="noreferrer" target="_blank">https://lists.slackbuilds.org/pipermail/slackbuilds-users/</a><br>
FAQ - <a href="https://slackbuilds.org/faq/" rel="noreferrer" target="_blank">https://slackbuilds.org/faq/</a><br>
<br>
</blockquote></div>