Firefox snap failing in VNC session


When starting firefox snap from a VNC session started by systemd, it errors out. I’ve looked at some of the workaround hits on google, but they don’t seem to work for me on 22.04.2 LTS.

/system.slice/system-vncserver.slice/vncserver@1.service is not a snap cgroup

1st: What’s the latest fix, and can it be documented?

2nd: Given that this issue keeps coming up and that the various workarounds seem to break over and over, it seems to me that a more proactive approach is needed, possibly with a specific help page for users. With snaps becoming the default in future releases it is vital that Ubuntu avoids the systemd debacle.