hammering away

main
superrob1500 2025-10-12 21:55:53 +02:00
parent 586faed768
commit dd97b072b3
1 changed files with 5 additions and 6 deletions

View File

@ -179,12 +179,11 @@ install_deps_linux() {
;;
esac
# Verify critical pkg-config dependencies
for pkg in gtk4 libadwaita-1 gtk-layer-shell-1.0; do
if ! pkg-config --exists "$pkg"; then
error "Missing required development package: $pkg. Did apt-get install succeed?"
fi
done
# Verify critical header files instead of pkg-config
[[ -f /usr/include/gtk-4.0/gtk/gtk.h ]] || error "GTK4 headers not found. Install libgtk-4-dev."
[[ -f /usr/include/adwaita-1.0/adwaita.h ]] || error "libadwaita headers not found. Install libadwaita-1-dev."
[[ -f /usr/include/gtk-layer-shell-1.0/gtk-layer-shell.h ]] || error "GTK Layer Shell headers not found. Install libgtk4-layer-shell-dev."
[[ -f /usr/include/harfbuzz/harfbuzz.h ]] || error "Harfbuzz headers not found. Install libharfbuzz-dev."
elif command_exists pacman; then
sudo pacman -Sy --noconfirm \