If looking into this:
sudo snap install ghex-udt
- update /var/lib/snapd/apparmor/profiles/snap.ghex-udt.ghex to comment out the ‘#include <abstractions/X>’ line (not strictly required, but ensures X cannot be fallen back to) and use
sudo apparmor_parser -r /var/lib/snapd/apparmor/profiles/snap.ghex-udt.ghex
snap run --shell ghex-udt.ghex
cd $XDG_RUNTIME_DIR && test -S $XDG_RUNTIME_DIR/../wayland-0 && ln -s $XDG_RUNTIME_DIR/../wayland-0
$SNAP/command-ghex.wrapper