From: Jeremie Courreges-Anglas Subject: Re: [new] wayland/cagebreak To: Matthieu Herrb Cc: ports@openbsd.org, landry@openbsd.org Date: Wed, 26 Nov 2025 23:08:27 +0100 On Wed, Nov 26, 2025 at 10:29:52PM +0100, Matthieu Herrb wrote: > 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. ack. Anyway xwayland support means the default config is able to start xterm. I personally don't need much more than xterm and firefox. :) > > > > 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. I had forgotten about this noop default. I took the script from wayland/sway/files so free commit for you! > > : ${XDG_CURRENT_DESKTOP:=sway} > > s/sway/cagebreak/ ? Or did you find applications that work better with > the 'sway' value ? Nope, I just copied the script and missed that line. Fixed, though I have no idea whether it matters or not. > > : ${XDG_RUNTIME_DIR:=${HOME}/.local/run} > > I think it's time to start removing those settings from wayland start > scripts. Right now login(1) doesn't set XDG_RUNTIME_DIR any more and LOGIN_SETXDGENV has to be passed explicitely to setusercontext(3). So I think it's better to keep this failsafe value for now. I have a diff pending for login(1) btw, but it received no reply so far. > > : ${QT_QPA_PLATFORM:=wayland} > > #: MOZ_ENABLE_WAYLAND:=1 # doesn't work yet > I'd remove this line Sure. Updated tarball attached. -- jca