this problem does not seem to affect unconfined snaps which might explain why cherrytree works. I have this problem with a nomachine remote xubuntu desktop. 22.04 is not great when snap is broken.
The session is started with
/usr/bin/startxfce4 (in /usr/NX/etc/node.cfg)