From 77d243f931135454cc275dfd5483e4b6e6cfdbb0 Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Tue, 17 Sep 2024 15:06:45 +0200 Subject: [PATCH] AppRun: fix libwayland* not found condition (commit HEAD^^^) --- data/scripts/Linux-AppImage/AppRun | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/scripts/Linux-AppImage/AppRun b/data/scripts/Linux-AppImage/AppRun index 5e97087f4..c491a76f1 100755 --- a/data/scripts/Linux-AppImage/AppRun +++ b/data/scripts/Linux-AppImage/AppRun @@ -194,8 +194,8 @@ setup_wayland() { LOADER=$(get_loader) if [ -x "$LOADER" ] && [ -f "$sdl_l" ]; then ldd=$(LD_TRACE_LOADED_OBJECTS=1 "$LOADER" "$sdl_l") - if echo "$ldd" | grep libwayland | grep -qv 'not found'; then - return # we don't have libwayland* in system + if ! echo "$ldd" | grep libwayland | grep -q 'not found'; then + return # we have libwayland* in system fi elif [ -n "${WAYLAND_DISPLAY-}" ]; then # fallback - don't have SDL2, return # use env var instead