shit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# Launch Weston automatically after autologin on the first VT.
|
||||
# seatd (running as a service) grants access to DRM/input devices, and
|
||||
# XDG_RUNTIME_DIR is created here since there is no logind to do it.
|
||||
if [ "$(tty)" = "/dev/tty1" ] && [ -z "${WAYLAND_DISPLAY:-}" ] && [ -z "${DISPLAY:-}" ]; then
|
||||
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
|
||||
if [ ! -d "$XDG_RUNTIME_DIR" ]; then
|
||||
mkdir -p "$XDG_RUNTIME_DIR"
|
||||
fi
|
||||
chmod 0700 "$XDG_RUNTIME_DIR"
|
||||
export XDG_SESSION_TYPE=wayland
|
||||
exec weston
|
||||
fi
|
||||
Reference in New Issue
Block a user