GDM with wayland does not use xprofile for autostarting
The linked page Display manager#Autostarting works only with Xserver. As described here https://wiki.gnome.org/Initiatives/Wayland/SessionStart, GDM with Wayland does not run a login shell, nor source any profile file.
Environment variables can be set as described in the link above (although it should be noted that PATH cannot be set due to https://gitlab.gnome.org/GNOME/gdm/-/issues/385).
I don't know of any way to execute commands in the same way as
.xprofile was used to.
Also, I'm not sure if this is GDM specific or affects ather display managers (sddm loads
.profile - likely by running a shell script first?).