# HG changeset patch # User Pascal Bellard # Date 1560073022 -7200 # Node ID e12ece9707c2102008407b7690087b732ed0c7bb # Parent 36cb14e87ba5173d010131c3437d12192d8a2497 get-LibreOffice: fix menu entries (again) diff -r 36cb14e87ba5 -r e12ece9707c2 get-LibreOffice/stuff/get-LibreOffice --- a/get-LibreOffice/stuff/get-LibreOffice Sun Jun 09 10:58:25 2019 +0200 +++ b/get-LibreOffice/stuff/get-LibreOffice Sun Jun 09 11:37:02 2019 +0200 @@ -261,7 +261,7 @@ post_install() { - ln -sf /usr/lib/libreoffice?* \ + ln -sf /usr/lib/libreoffice?* \\ /usr/lib/libreoffice path_libreoffice=\$(find /usr/lib/libreoffice -name libreoffice*.*) @@ -270,23 +270,23 @@ # Create links cd /usr/share/applications - ln -sf \$path_libreoffice/share/xdg/base.desktop \ + ln -sf \$path_libreoffice/share/xdg/base.desktop \\ libreoffice-base.desktop - ln -sf \$path_libreoffice/share/xdg/impress.desktop \ + ln -sf \$path_libreoffice/share/xdg/impress.desktop \\ libreoffice-impress.desktop - ln -sf \$path_libreoffice/share/xdg/writer.desktop \ + ln -sf \$path_libreoffice/share/xdg/writer.desktop \\ libreoffice-writer.desktop - ln -sf \$path_libreoffice/share/xdg/calc.desktop \ + ln -sf \$path_libreoffice/share/xdg/calc.desktop \\ libreoffice-calc.desktop - ln -sf \$path_libreoffice/share/xdg/math.desktop \ + ln -sf \$path_libreoffice/share/xdg/math.desktop \\ libreoffice-math.desktop - ln -sf \$path_libreoffice/share/xdg/draw.desktop \ + ln -sf \$path_libreoffice/share/xdg/draw.desktop \\ libreoffice-draw.desktop chmod +x \$path_libreoffice/share/xdg/*.desktop # Fix menu entries - sed -i 's|^[Ee]xec=libreoffice[0-9\.]*|Exec=libreoffice|' \ + sed -i 's|^\\([Ee]xec=libreoffice\\)[0-9\\.]*|\\0|' \\ \$path_libreoffice/share/xdg/*.desktop # If necessary, recreate links for soffice