From 0e7416a9c60d8306c6b3ecdc9d368b40e58ac48a Mon Sep 17 00:00:00 2001 From: B3ni Date: Mon, 7 Jul 2025 13:58:35 +0200 Subject: [PATCH] Refactor entrypoint script: simplify X11 permissions handling by removing unnecessary sudo commands --- entrypoint.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index b2a7ca9..22d0135 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,10 +8,9 @@ export INTERNAL_IP # set this variable, dotnet needs it even without it it reports to `dotnet --info` it can not start any aplication without this export DOTNET_ROOT=/usr/share/ -# Fix X11 permissions (run as root first) -sudo mkdir -p /tmp/.X11-unix -sudo chmod 1777 /tmp/.X11-unix -sudo chown root:root /tmp/.X11-unix +# Fix X11 permissions +mkdir -p /tmp/.X11-unix +chmod 1777 /tmp/.X11-unix # Start Xvfb for Wine (virtual display) Xvfb :99 -screen 0 1024x768x16 -ac &