I am using Gnome on Wayland and I want to setup a global variable so Firefox always launches with Wayland enabled. I have been able to modify the .desktop file to add
Exec=env MOZ_ENABLE_WAYLAND=1 firefox so when I launch firefox manually it loads in Wayland mode.
The issue is when I click a link that opens Firefox for me it launches in xWayland mode. Where do I change environment variables within Gnome Wayland using GDM? From my searches the results show to use
~/.config/environment.d/x.conf but I did not have the enviroment.d folder. I manually created it and a Firefox.conf inside but after rebooting it doesn’t seem to be working.