#!/bin/execlineb -P # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2021, 2025 Alyssa Ross importas -Siu WAYLAND_DISPLAY # Workaround for # https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/1911 if { mkdir -p -m 0700 /run/user/0 } backtick USER { id -un } backtick HOME { importas -i user USER homeof $user } redirfd -r 0 /dev/tty1 importas -i home HOME cd $home if { udevadm wait /dev/dri/card0 } unshare --cgroup --ipc --net --uts s6-envuidgid root s6-envuidgid -g wayland s6-applyuidgid -Uz umask 002 weston -S $WAYLAND_DISPLAY