mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-10-30 19:03:59 +01:00
17 lines
475 B
Bash
Executable File
17 lines
475 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Enable Nvidia GPU support if detected
|
|
if which nvidia-smi > /dev/null 2>&1 && ls -A /dev/dri 2>/dev/null && [ "${DISABLE_ZINK}" == "false" ]; then
|
|
export LIBGL_KOPPER_DRI2=1
|
|
export MESA_LOADER_DRIVER_OVERRIDE=zink
|
|
export GALLIUM_DRIVER=zink
|
|
fi
|
|
|
|
# Disable compositing
|
|
setterm blank 0
|
|
setterm powerdown 0
|
|
gsettings set org.mate.Marco.general compositing-manager false
|
|
|
|
# Start DE
|
|
exec dbus-launch --exit-with-session /usr/bin/mate-session > /dev/null 2>&1
|