I found out that the default project path of Godot is ~/snap/godot/common.
One could live with that, the problem is that when you remove the snap, that folder will be erased with all your projects inside if you didn’t change it or moved it.
Who decides the “default folder” ? For example, where would android studio snap put the project folder by default ?
I guess that default should be set to home folder for all snaps, not to ~/snap
Snaps do use a snap interface to access the home dir, in cases where an admin decides to disconnect that home interface the app will not have access to $HOME at all anymore, many admins in enterprises actually use that feature of snaps for extra security …
A snap that does not have that interface connected still needs to be able to write its caches, configs and data somewhere, for this the dedicated ~/snap dir exists …
Typically (when properly packaged) a desktop snap should actually use ~/snap/<snapname>/current because that dir is actually bound to the revision of a snap version, so if you do a snap revert <snapname> to go back to a former version of the package it will find the configuration data that was recent for this version of the app …
When you remove a snap without the --purge option, snapd will always take a snapshot of the data in the ~/snap/<snapname> directory and keep this around for a month to make sure config and data is not lost in case you change your mind or only temporary removed the snap …
Take a look at:
You should be able to restore the snapshot that was automatically taken to fish out the godot data you care about or copy the whole content somewhere …
Thanks for updating me about how snap work, they’re perfect for people from the future probably but now check this screenshot.
You know original paths are /usr/lib/jvm/java-21-openjdk-amd64 and /usr/lib/android-sdk/tools right ?
That’s becoming a bit too much for a desktop user I think, all those path changes should be invisible to the user
