From bc178c114ea53d18055c9eaa7d648026b1de4101 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Wed, 23 Aug 2023 07:51:23 -0500 Subject: [PATCH] Libreoffice MS theme: ensure libreoffice-gtk3 is installed --- apps/Libreoffice MS theme/install | 3 +++ apps/Libreoffice MS theme/uninstall | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/Libreoffice MS theme/install b/apps/Libreoffice MS theme/install index 434b0d76b9..b2a5fb0385 100755 --- a/apps/Libreoffice MS theme/install +++ b/apps/Libreoffice MS theme/install @@ -3,6 +3,9 @@ if ! command -v libreoffice >/dev/null ;then error "User error: Libreoffice is not installed, so this theme is useless to you.\nTo install libreoffice, run this in a terminal:\nsudo apt install libreoffice libreoffice-gtk2" fi +#Ensure libreoffice-gtk3 is installed. It is installed by default on PiOS, but reinstaling libreoffice will not bring it back, resulting in a Win95 interface and no tabbed theme. +install_packages libreoffice-gtk3 || exit 1 + rm -rf ~/libreoffice-ms-theme git_clone --depth=1 https://github.com/Botspot/libreoffice-ms-theme || error "Failed to git_clone libreoffice-ms-theme repository!" ~/libreoffice-ms-theme/apply.sh || error "apply.sh failed" diff --git a/apps/Libreoffice MS theme/uninstall b/apps/Libreoffice MS theme/uninstall index abf567b9ba..ff9271641e 100755 --- a/apps/Libreoffice MS theme/uninstall +++ b/apps/Libreoffice MS theme/uninstall @@ -1,4 +1,7 @@ #!/bin/bash + +purge_packages || exit 1 + rm -rf ~/libreoffice-ms-theme git_clone --depth=1 https://github.com/Botspot/libreoffice-ms-theme || error "Failed to git_clone libreoffice-ms-theme repository!" ~/libreoffice-ms-theme/revert.sh || error "revert.sh failed"