From: Matthieu Herrb Subject: Re: [new] wayland/cagebreak To: ports@openbsd.org, landry@openbsd.org Date: Wed, 26 Nov 2025 22:29:52 +0100 On Wed, Nov 26, 2025 at 07:44:14PM +0100, Jeremie Courreges-Anglas wrote: > > Here's cagebreak, a compositor for wayland that looks and feels very > similar to x11/raptoison. I have very little experience running > wayland stuff under OpenBSD but it seems to just work when started > from ttyC0. It ships xwayland support, which maybe explains why I can > run firefox out of the box? Nowadays, Firefox run as a native Wayland application unless you set MOZ_ENABLE_WAYLAND=0 explicitely. > > Thoughts? ok? I would amnd the start script a bit > #! /bin/ksh > set -eu > > : ${WLR_DRM_DEVICES:=/dev/dri/card0} > : ${LIBSEAT_BACKEND:=noop} This one is not needed anymore. landry@ has provided a patch to make it the default in libseat. > : ${XDG_CURRENT_DESKTOP:=sway} s/sway/cagebreak/ ? Or did you find applications that work better with the 'sway' value ? > : ${XDG_RUNTIME_DIR:=${HOME}/.local/run} I think it's time to start removing those settings from wayland start scripts. > : ${QT_QPA_PLATFORM:=wayland} > #: MOZ_ENABLE_WAYLAND:=1 # doesn't work yet I'd remove this line > > export WLR_DRM_DEVICES LIBSEAT_BACKEND > export XDG_CURRENT_DESKTOP XDG_RUNTIME_DIR > export QT_QPA_PLATFORM > > if [ ! -d "${XDG_RUNTIME_DIR}" ]; then > mkdir -m 700 -p "${XDG_RUNTIME_DIR}" > fi > > exec /usr/local/bin/cagebreak "$@" > -- Matthieu Herrb