Gnome apps on sway slow launch

At some point after upgrading nixos, launching any gnome apps from sway (files, clocks, etc) became painfully slow. I’m not 100% if it came with Gnome 40, almost think it started happening even before that. The apps eventually launch, but take 10-15 seconds to launch sometimes.

I’m a bit lost where to even start looking, since they launch and work OK under Gnome.

I had a similar problem some time ago and adding exec systemctl --user import-environment to Sway config fixed it for me. See:

@ilkecan Thank you so much, that totally fixed it