Added LibreOffice

This commit is contained in:
tb14
2019-07-21 18:54:47 -07:00
parent ce0b6b54b7
commit 46713d5efb
+14 -1
View File
@@ -272,6 +272,12 @@ else
YAACVER="NOT INSTALLED"
fi
if hash libreoffice 2>/dev/null; then
LIBREVER="INSTALLED"
else
LIBREVER="NOT INSTALLED"
fi
}
@@ -1840,6 +1846,9 @@ function gedit_install() {
sudo apt-get -y install gedit
}
function libreoffice_install() {
sudo apt -y install libreoffice
}
function keyboard_install() {
sudo apt-get -y install matchbox-keyboard
@@ -2689,11 +2698,12 @@ yad --image=/tmp/banner.png --center --checklist --print-column=2 --separator=""
false "ELECTRUM" "Electrum BTC Wallet. Not working on Pi yet." "" \
false "RASPAP" "Turn your Pi 3 into an Access Point (Hotspot)." "" \
false "CONKY" "Conky system monitor" "${CONKYVER}" \
false "LIBREOFFICE" "LibreOffice Suite" "${LIBREVER}" \
${r} ${c} >>/tmp/results
rc=$?
if [[ $rc == 2 ]]; then
otherArray=(GEDIT MATCHBOX_KEYBOARD SCREEN SPEEDTEST ELECTRUM RASPAP CONKY)
otherArray=(GEDIT MATCHBOX_KEYBOARD SCREEN SPEEDTEST ELECTRUM RASPAP CONKY LIBREOFFICE)
for i in "${otherArray[@]}"
do
@@ -3265,6 +3275,9 @@ cat /tmp/results | yad --text-info --center \
BT-ENABLE) echo "Re-Enabling Bluetooth"
bt_on
;;
LIBREOFFICE) echo "Installing LibreOffice Suite"
libreoffice_install
;;
esac
done < /tmp/results