How to build snapd from source I'm using Red Hat Enterprise Linux 8?

Sorry for bothering you. I had tried several times to build snapd from source on Ubuntu 22.04(LTS) destop within the virtualbox according to HACKING. After installing the build dependencies, my ubuntu can’t login ubuntu destop but only login by shell session. I found that the /usr/share/xsession directory was disapeared. But i tried this on Ubuntu 18.04 successfully!