Is XDG_DATA_HOME modified by Snap's adapters?

Yes. The aim is for Barrier to be useful on headless machines, which means it needs to be running when the login screen for the display manager is up.