Skip to content

Commit

Permalink
AppRun: fix libwayland* not found condition
Browse files Browse the repository at this point in the history
(commit HEAD^^^)
  • Loading branch information
MartinPulec committed Sep 17, 2024
1 parent 78fa125 commit 77d243f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/scripts/Linux-AppImage/AppRun
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77d243f

Please sign in to comment.