Godot can't find dotnet sdk when download from snap

Godot Version

4.2.2

Question

I have a new PC and I am trying to use Linux, specifically Zorin OS. I downloaded Dotnet from Snap, and it was saved in the path /snap/dotnet-sdk/240/sdk. However, when I start Godot, I receive a message saying that I don’t have Dotnet installed. I tried adding GODOT_MONO_SDK_PATH=/snap/dotnet-sdk/240/sdk to the files .bashrc and .profile, but it still doesn’t find it. what can I do?