Wayland, dconf and XDG_RUNTIME_DIR

If looking into this:

  1. sudo snap install ghex-udt
  2. 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
  3. snap run --shell ghex-udt.ghex
  4. cd $XDG_RUNTIME_DIR && test -S $XDG_RUNTIME_DIR/../wayland-0 && ln -s $XDG_RUNTIME_DIR/../wayland-0
  5. $SNAP/command-ghex.wrapper