From 5dcf5653440dbce8d370699dc5b988bd18a82dd0 Mon Sep 17 00:00:00 2001 From: "ryan.kuba" Date: Tue, 11 Jul 2023 20:18:58 -0400 Subject: [PATCH] KASM-4563 add modifications to desktop launcher for libreoffice in Ubuntu --- src/ubuntu/install/libre_office/install_libre_office.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ubuntu/install/libre_office/install_libre_office.sh b/src/ubuntu/install/libre_office/install_libre_office.sh index 2fa09fe..32fbf39 100644 --- a/src/ubuntu/install/libre_office/install_libre_office.sh +++ b/src/ubuntu/install/libre_office/install_libre_office.sh @@ -13,6 +13,14 @@ rm -rf \ /var/lib/apt/lists/* \ /var/tmp/* +sed -i "s@Exec=libreoffice@Exec=env LD_LIBRARY_PATH=:/usr/lib/libreoffice/program:/usr/lib/$(arch)-linux-gnu/ libreoffice@g" /usr/share/applications/libreoffice-*.desktop cp /usr/share/applications/libreoffice-startcenter.desktop $HOME/Desktop/ chown 1000:1000 $HOME/Desktop/libreoffice-startcenter.desktop chmod +x $HOME/Desktop/libreoffice-startcenter.desktop + +if [ -z ${SKIP_CLEAN+x} ]; then + apt-get autoclean + rm -rf \ + /var/lib/apt/lists/* \ + /var/tmp/* +fi