Are those commands are from Fedora 36? Just try this if you have gnome:
DefaultDesktopCommand "/etc/gdm/Xsession gnome-session"
Yes, it’s fedora 36. With this command I don’t get the same error, but the NoMachine server dies pretty quickly, and I never see a desktop.
Thanks….