diff options
author | wsnipex <wsnipex@a1.net> | 2020-10-10 17:35:15 +0200 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2020-10-27 08:21:37 -0700 |
commit | e8002707f65cbb9d59004718641a0f9053dd098f (patch) | |
tree | 2e5c43c6fd30c187d6db13baaec7c5b1101ccffb /tools/Linux | |
parent | 4dafe4b8528baf008d3079c333c8b97942cb84f1 (diff) |
[tools/linux]: remove windowing option from kodi wrapper script
Diffstat (limited to 'tools/Linux')
-rw-r--r-- | tools/Linux/kodi.sh.in | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in index 73d8c9be81..6899a47c1e 100644 --- a/tools/Linux/kodi.sh.in +++ b/tools/Linux/kodi.sh.in @@ -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" |