From d1c4f8694f1300395e1f2e7133adb093d3c4c0da Mon Sep 17 00:00:00 2001 From: Kim Eik Date: Wed, 9 Oct 2024 09:05:21 +0200 Subject: [PATCH] removed uneccesary check --- zwift.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zwift.sh b/zwift.sh index cb6764b..a32044b 100755 --- a/zwift.sh +++ b/zwift.sh @@ -275,6 +275,6 @@ if [ $? -ne 0 ]; then fi # Allow container to connect to X, has to be set for different UID -if [ -x "$(command -v xhost)" ] && [ $ZWIFT_UID -ne $(id -u) ] && [ -z $WINE_EXPERIMENTAL_WAYLAND ]; then +if [ -x "$(command -v xhost)" ] && [ -z $WINE_EXPERIMENTAL_WAYLAND ]; then xhost +local:$($CONTAINER_TOOL inspect --format='{{ .Config.Hostname }}' $CONTAINER) fi