mirror of
https://github.com/linuxserver/docker-webtop.git
synced 2025-08-30 22:18:46 +02:00
19 lines
396 B
Bash
Executable File
19 lines
396 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Enable Nvidia GPU support if detected
|
|
if which nvidia-smi; then
|
|
export LIBGL_KOPPER_DRI2=1
|
|
export MESA_LOADER_DRIVER_OVERRIDE=zink
|
|
export GALLIUM_DRIVER=zink
|
|
fi
|
|
|
|
setterm blank 0
|
|
setterm powerdown 0
|
|
|
|
# Dbus defaults
|
|
export XDG_RUNTIME_DIR="/tmp/xdg-runtime-abc"
|
|
mkdir -p -m700 "${XDG_RUNTIME_DIR}"
|
|
|
|
# Start DE
|
|
exec dbus-launch --exit-with-session /usr/bin/i3 > /dev/null 2>&1
|