Skip to content

Commit cfa74f7

Browse files
committed
add wayland init logic
1 parent cf261ae commit cfa74f7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

root/defaults/startwm_wayland.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
# Default settings
4+
if [ ! -d "${HOME}"/.config/xfce4/xfconf/xfce-perchannel-xml ]; then
5+
mkdir -p "${HOME}"/.config/xfce4/xfconf/xfce-perchannel-xml
6+
cp /defaults/xfce/* "${HOME}"/.config/xfce4/xfconf/xfce-perchannel-xml/
7+
fi
8+
9+
# Start DE
10+
WAYLAND_DISPLAY=wayland-1 Xwayland :1 &
11+
sleep 2
12+
exec dbus-launch --exit-with-session /usr/bin/xfce4-session > /dev/null 2>&1

0 commit comments

Comments
 (0)