wok rev 21713
get-LibreOffice: fix menu entries (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 09 11:37:02 2019 +0200 (2019-06-09) |
parents | 36cb14e87ba5 |
children | 0451e4c7bc79 |
files | get-LibreOffice/stuff/get-LibreOffice |
line diff
1.1 --- a/get-LibreOffice/stuff/get-LibreOffice Sun Jun 09 10:58:25 2019 +0200 1.2 +++ b/get-LibreOffice/stuff/get-LibreOffice Sun Jun 09 11:37:02 2019 +0200 1.3 @@ -261,7 +261,7 @@ 1.4 1.5 post_install() 1.6 { 1.7 - ln -sf /usr/lib/libreoffice?* \ 1.8 + ln -sf /usr/lib/libreoffice?* \\ 1.9 /usr/lib/libreoffice 1.10 path_libreoffice=\$(find /usr/lib/libreoffice -name libreoffice*.*) 1.11 1.12 @@ -270,23 +270,23 @@ 1.13 1.14 # Create links 1.15 cd /usr/share/applications 1.16 - ln -sf \$path_libreoffice/share/xdg/base.desktop \ 1.17 + ln -sf \$path_libreoffice/share/xdg/base.desktop \\ 1.18 libreoffice-base.desktop 1.19 - ln -sf \$path_libreoffice/share/xdg/impress.desktop \ 1.20 + ln -sf \$path_libreoffice/share/xdg/impress.desktop \\ 1.21 libreoffice-impress.desktop 1.22 - ln -sf \$path_libreoffice/share/xdg/writer.desktop \ 1.23 + ln -sf \$path_libreoffice/share/xdg/writer.desktop \\ 1.24 libreoffice-writer.desktop 1.25 - ln -sf \$path_libreoffice/share/xdg/calc.desktop \ 1.26 + ln -sf \$path_libreoffice/share/xdg/calc.desktop \\ 1.27 libreoffice-calc.desktop 1.28 - ln -sf \$path_libreoffice/share/xdg/math.desktop \ 1.29 + ln -sf \$path_libreoffice/share/xdg/math.desktop \\ 1.30 libreoffice-math.desktop 1.31 - ln -sf \$path_libreoffice/share/xdg/draw.desktop \ 1.32 + ln -sf \$path_libreoffice/share/xdg/draw.desktop \\ 1.33 libreoffice-draw.desktop 1.34 1.35 chmod +x \$path_libreoffice/share/xdg/*.desktop 1.36 1.37 # Fix menu entries 1.38 - sed -i 's|^[Ee]xec=libreoffice[0-9\.]*|Exec=libreoffice|' \ 1.39 + sed -i 's|^\\([Ee]xec=libreoffice\\)[0-9\\.]*|\\0|' \\ 1.40 \$path_libreoffice/share/xdg/*.desktop 1.41 1.42 # If necessary, recreate links for soffice