From ArchWiki

GDM with wayland does not use xprofile for autostarting

The linked page Display manager#Autostarting works only with Xserver. As described here, 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

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?).

—This unsigned comment is by Knezi (talk) 13:11, 18 October 2020‎ (UTC). Please sign your posts with ~~~~!