aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorManfred Hollstein <manfred.h@gmx.net>2024-04-23 11:55:27 +0200
committerManfred Hollstein <manfred.h@gmx.net>2024-04-23 11:55:27 +0200
commit5f19a377c5550b170d81ea026d36b5d2fb5591cf (patch)
tree4317057c8478b50b2ae71d4453d5c40045bf7d28 /tools
parenta5fb12b4637c62a47a59fcc50f2c88246e9d6fff (diff)
downloadxbmc-5f19a377c5550b170d81ea026d36b5d2fb5591cf.tar.xz
Properly initialize ENV_ARGS and add additional arguments instead of assigning/overwriting.
Diffstat (limited to 'tools')
-rw-r--r--tools/Linux/kodi.sh.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in
index 52d4646db5..3d86c86834 100644
--- a/tools/Linux/kodi.sh.in
+++ b/tools/Linux/kodi.sh.in
@@ -171,6 +171,7 @@ if command_exists gdb; then
fi
fi
+ENV_ARGS=
if [ -n "${KODI_AE_SINK}" ]; then
echo "KODI_AE_SINK env variable is deprecated and will be removed in the future."
@@ -197,11 +198,11 @@ if [ -n "${KODI_GL_INTERFACE}" ]; then
echo "Use the --gl-interface command line switch instead."
if [ "${KODI_GL_INTERFACE}" = "GLX" ]; then
- ENV_ARGS="--gl-interface=glx"
+ ENV_ARGS="${ENV_ARGS} --gl-interface=glx"
elif [ "${KODI_GL_INTERFACE}" = "EGL" ]; then
- ENV_ARGS="--gl-interface=egl"
+ ENV_ARGS="${ENV_ARGS} --gl-interface=egl"
elif [ "${KODI_GL_INTERFACE}" = "EGL_PB" ]; then
- ENV_ARGS="--gl-interface=egl-pb"
+ ENV_ARGS="${ENV_ARGS} --gl-interface=egl-pb"
fi
fi