community/gdm - ~/.profile doesn't get sourced by Xorg sessions and by Wayland sessions other than GNOME
While ~/.profile
does get sourced by GNOME Wayland session, other sessions don't use environment from login shells, but instead inherit environment variables from GDM.
To verify, I use GNOME's run menu (Alt + F2 by default) and run kgx -- sh
and run env
in the opened terminal window.
You can also notice MOZ_ENABLE_WAYLAND missing in firefox when running firefox through app launcher.