Skip to content

Commit 59289ca

Browse files
committed
add wayland init logic
1 parent a5be0bd commit 59289ca

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

root/defaults/startwm_wayland.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
# Enable Nvidia GPU support if detected
4+
if which nvidia-smi > /dev/null 2>&1 && ls -A /dev/dri 2>/dev/null && [ "${DISABLE_ZINK}" == "false" ]; then
5+
export LIBGL_KOPPER_DRI2=1
6+
export MESA_LOADER_DRIVER_OVERRIDE=zink
7+
export GALLIUM_DRIVER=zink
8+
fi
9+
10+
# Launch DE
11+
setterm blank 0
12+
setterm powerdown 0
13+
WAYLAND_DISPLAY=wayland-1 Xwayland :1 &
14+
sleep 2
15+
/usr/bin/dbus-launch /usr/bin/mate-session > /dev/null 2>&1

0 commit comments

Comments
 (0)