I am using Arch linux on a nvidia machine with the latest nvidia package, and the default linux kernel. I have noticed steam takes forever to launch and seems to loop, this happens on both xorg and wayland
I was having similar problems on a fresh arch install with multiple apps taking upwards of 15 seconds to launch, and the “fix” ended up being to uninstall one or more of the “portal” packages (there are several with names like xdg-desktop-portal-gtk). https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/issues/74 and https://bbs.archlinux.org/viewtopic.php?id=285334 for more info.
Could be completely unrelated, but it might be worth a try.
You are right, this fixes slow startup times for Steam, Firefox, Thunderbird and various others.
@setInner234 @deong yes, uninstall gtk-desktop-portal-gnome if you aren’t using the gnome desktop, same for the kde variant if you aren’t using kde. The gtk portal is most generic, it’s supposed to be for any setup which doesn’t have its own portals like many, or those who only have the minimum required, those which have something to do with compositor support, for example wlroots based setups. If your desktop has a portal backend, don’t use the gtk one as you may be missing in functionality, arch devs should make more specific portal backend packages conflict with the generic gtk one, but o well.
Mine is legit only steam and takes upwards of 3-5 minutes
What desktop environment or wm are you using? Are you using a login manager or launching your session from tty?
I’ve had similar issues in the past but in my case I had to configure things so that when I log in it sets environment variables correctly and have my sway config start up xdg-desktop-portal correctly.
I’ve also had situations where specifically xdg-desktop-portal-gtk was causing problems so id uninstall that while keeping the other xdg-desktop-portal-* packages, so it could be one of those causing it
I’m using KDE so my WM is kwin, and my login manager is SDDM
for anyone wondering a I fixed by deleting this directory ~/nvidia/GLCache/