diff options
author | graysky | 2021-02-28 16:02:09 -0500 |
---|---|---|
committer | graysky | 2021-02-28 16:02:09 -0500 |
commit | 743979c1a56383aceb98d01e75f48c6b25e59b3b (patch) | |
tree | 51f77182c305e3c9532ff1b7e4e8288a9d3c1b93 /0001-allow-separate-windowing-binaries-being-launched-fro.patch | |
parent | afe3de20eb378d55a0e0a9f12086557efa2b7708 (diff) | |
download | aur-743979c1a56383aceb98d01e75f48c6b25e59b3b.tar.gz |
Update to r57129.ce595fb1671-1
Diffstat (limited to '0001-allow-separate-windowing-binaries-being-launched-fro.patch')
-rw-r--r-- | 0001-allow-separate-windowing-binaries-being-launched-fro.patch | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/0001-allow-separate-windowing-binaries-being-launched-fro.patch b/0001-allow-separate-windowing-binaries-being-launched-fro.patch new file mode 100644 index 000000000000..df983480594d --- /dev/null +++ b/0001-allow-separate-windowing-binaries-being-launched-fro.patch @@ -0,0 +1,67 @@ +From 5b75228b51c3422644468050debbc495f5195585 Mon Sep 17 00:00:00 2001 +From: BlackEagle <ike.devolder@gmail.com> +Date: Thu, 25 Feb 2021 15:24:21 +0100 +Subject: [PATCH] allow separate windowing binaries being launched from kodi + wrapper + +Signed-off-by: BlackEagle <ike.devolder@gmail.com> +--- + tools/Linux/kodi.sh.in | 29 ++++++++++++++++++++++++++++- + 1 file changed, 28 insertions(+), 1 deletion(-) + +diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in +index 108c0b0..38a49e0 100644 +--- a/tools/Linux/kodi.sh.in ++++ b/tools/Linux/kodi.sh.in +@@ -28,6 +28,7 @@ LIBDIR="@libdir@" + APP_BINARY=$LIBDIR/${bin_name}/@APP_BINARY@ + CRASHLOG_DIR=${CRASHLOG_DIR:-$HOME} + KODI_DATA=${KODI_DATA:-"${HOME}/.${bin_name}"} # mapped to special://home/ ++WINDOWING=${WINDOWING:-"auto"} + + # Workaround for high CPU load with nvidia GFX + export __GL_YIELD=USLEEP +@@ -43,13 +44,39 @@ do + LIBDIR="$2" + shift; shift + ;; ++ --windowing) ++ WINDOWING="$2" ++ echo "$SAVED_ARGS" | sed "s/--windowing[ ]*$2//g" ++ shift; shift ++ ;; + *) + shift + ;; + esac + done + +-KODI_BINARY=${APP_BINARY} ++# 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 + + if [ ! -x ${KODI_BINARY} ]; then + echo "Error: ${KODI_BINARY} not found" +-- +2.30.1 + |