Snapped steam works from .desktop launcher, not from command line

I found an odd bug in steam snap: if I click on the steam icon (either in the dock, or in the applications list in the Gnome Shell overview) everything works as expected; but if I open a terminal and launch it with “steam”, it “hangs” without showing any window, and doing a “top” shows two “lsof” processes waiting… Also, “snap run steam” does the same. I have Ubuntu 24.10.