Refactor entrypoint script: simplify X11 permissions handling by removing unnecessary sudo commands
This commit is contained in:
@@ -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
|
# 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/
|
export DOTNET_ROOT=/usr/share/
|
||||||
|
|
||||||
# Fix X11 permissions (run as root first)
|
# Fix X11 permissions
|
||||||
sudo mkdir -p /tmp/.X11-unix
|
mkdir -p /tmp/.X11-unix
|
||||||
sudo chmod 1777 /tmp/.X11-unix
|
chmod 1777 /tmp/.X11-unix
|
||||||
sudo chown root:root /tmp/.X11-unix
|
|
||||||
|
|
||||||
# Start Xvfb for Wine (virtual display)
|
# Start Xvfb for Wine (virtual display)
|
||||||
Xvfb :99 -screen 0 1024x768x16 -ac &
|
Xvfb :99 -screen 0 1024x768x16 -ac &
|
||||||
|
Reference in New Issue
Block a user