More work on Xlibre integration.

This commit is contained in:
Storm Dragon 2025-06-19 00:17:40 -04:00
parent 41f91fc610
commit 29de9dd990

View File

@ -31,6 +31,9 @@ install_xlibre() {
local buildDir="/tmp/xlibre-build-$$" local buildDir="/tmp/xlibre-build-$$"
local success=true local success=true
# Make sure system is up to date
yay --sudoflags "${sudoFlags[@]}" --sudoloop --noconfirm -Syu
# Check if we have internet connectivity # Check if we have internet connectivity
if ! ping -c 1 aur.archlinux.org &>/dev/null; then if ! ping -c 1 aur.archlinux.org &>/dev/null; then
msgbox "No internet connection detected. X11Libre installation requires internet access." msgbox "No internet connection detected. X11Libre installation requires internet access."
@ -38,8 +41,8 @@ install_xlibre() {
fi fi
# Check available disk space (need at least 2GB for building) # Check available disk space (need at least 2GB for building)
local available_space=$(df /tmp | awk 'NR==2 {print $4}') local availableSpace=$(df /tmp | awk 'NR==2 {print $4}')
if [[ $available_space -lt 2097152 ]]; then if [[ $availableSpace -lt 2097152 ]]; then
msgbox "Insufficient disk space in /tmp. Need at least 2GB free for X11Libre build." msgbox "Insufficient disk space in /tmp. Need at least 2GB free for X11Libre build."
return 1 return 1
fi fi