Sway slow launch gnome apps

Sway is working ok with qt based apps launch quickly but for gtk apps it is taking upto 25-30 sec to launch after that it seems to work fine what can i do
I found an old post it says to add
exec systemctl --user import-environment
In sway config makes it work but it said it has deprecated to use this command without specifying so i added this command all the available options but that also dosent solves the problem what can i do to solve it
In nix config i have only enabled by
program.sway.enable =true

Try

  xdg.portal = {
    enable = true;
    wlr.enable = true;
  };