Setting up Wayland on FreeBSD

Ashish SHUKLA ashish at FreeBSD.org
Thu Jul 23 09:22:48 UTC 2020


On 7/23/20 5:16 AM, Lonnie Cumberland wrote:
> 
> Well, I am making good progress with my new experiences in the FreeBSD
> world and now it's time to get back on my project a bit.

Following information is what I referred to when I setup Wayland on mine:

https://unrelenting.technology/kb/FreeBSDDesktop
https://hub.darcs.net/raichoo/hikari

And I use following script (analogous to startx of X11 world) to launch
a Wayland desktop session:

================================================================
#!/bin/sh


export MOZ_ENABLE_WAYLAND=1
export XDG_SESSION_TYPE=wayland
export XDG_RUNTIME_DIR=/tmp/$USER/.xdg
export CLUTTER_BACKEND=wayland
export SDL_VIDEODRIVER=wayland
export LIBGL_DRI3_ENABLE=1
export XKB_DEFAULT_RULES=evdev
export QT_QPA_PLATFORM=wayland-egl
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
export BEMENU_BACKEND=wayland
export WLR_DRM_NO_ATOMIC=1

[ -d $XDG_RUNTIME_DIR ] || mkdir -m 700 -p $XDG_RUNTIME_DIR

#WM=wayfire
#WM=sway
WM=hikari


exec $WM >$HOME/.xsession-errors 2>&1
================================================================

Important part, make sure /tmp is not a ZFS mountpoint. I've it on tmpfs
filesystem.

HTH
-- 
Ashish SHUKLA | GPG: F682CDCC39DC0FEAE11620B6C746CFA9E74FA4B0

“There is no reason anyone would want a computer in their home.” (Ken
Olson, founder of DEC, 1977)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20200723/fedf83e9/attachment.sig>


More information about the freebsd-questions mailing list