Should /snap/bin be prepended to PATH?

Today i ran into a bug with snapcraft, so i installed the snap alongside with the deb, just to find the error was still there, eventually it struck me that we indeed append /snap/bin to the system PATH so the deb will always take precedence.

Wouldnt it make more sense that when a snap is installed it is also preferred over the installed deb … given you can install/remove a snap way easier than a deb (no dependencies, no modifications of the OS itself) i can imagine that people might just want to try out a newer version (and then go back and remove the snap again) … having to use “snap run …” here instead of just being able to exec the binary is a bit opaque IMHO.

1 Like