Skip to content

Commit

Permalink
[tools/linux]: remove windowing option from kodi wrapper script
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnipex authored and lrusak committed Oct 27, 2020
1 parent 4dafe4b commit e800270
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions tools/Linux/kodi.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -44,39 +44,13 @@ do
LIBDIR="$2"
shift; shift
;;
--windowing)
WINDOWING="$2"
echo "$SAVED_ARGS" | sed "s/--windowing[ ]*$2//g"
shift; shift
;;
*)
shift
;;
esac
done

# Note: by default only one of those binaries exists
# To be able to select a different one, if has to be compiled specifically
# Your distribution might provide extra packages for those
if [ "$WINDOWING" = "auto" ]; then
# Wayland
if [ -n "$WAYLAND_DISPLAY" ] && [ -x $LIBDIR/${bin_name}/${bin_name}-wayland ]; then
KODI_BINARY=$LIBDIR/${bin_name}/${bin_name}-wayland
# X11
elif echo $DISPLAY | grep -qE ":[0-9]+" && [ -x $LIBDIR/${bin_name}/${bin_name}-x11 ]; then
KODI_BINARY=$LIBDIR/${bin_name}/${bin_name}-x11
# GBM/DRM
elif [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ] && [ -x $LIBDIR/${bin_name}/${bin_name}-gbm ]; then
KODI_BINARY=$LIBDIR/${bin_name}/${bin_name}-gbm
# Default kodi.bin
else
KODI_BINARY=${APP_BINARY}
fi
elif [ -n "$WINDOWING" ]; then
KODI_BINARY=$LIBDIR/${bin_name}/${bin_name}-${WINDOWING}
else
KODI_BINARY=${APP_BINARY}
fi
KODI_BINARY=${APP_BINARY}

if [ ! -x ${KODI_BINARY} ]; then
echo "Error: ${KODI_BINARY} not found"
Expand Down

0 comments on commit e800270

Please sign in to comment.