/snap/bin not in $PATH on desktop
Sylvain Pineau
sylvain.pineau at canonical.com
Wed Sep 7 11:16:36 UTC 2016
Hello,
I noticed that I was not able to call other snap commands from my own
snap on my desktop.
So I tested what was defined using the hello-world.env command.
On desktop (with ubuntu-core 16.04.1 rev 352)
$ hello-world.env | grep ^PATH=
PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
But on a true snappy system (with ubuntu-core 16.04.1 rev 453), I get:
$ hello-world.env | grep ^PATH=
PATH=/home/ubuntu/bin:/home/ubuntu/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Is there any reason to not have /snap/bin as part of the $PATH available
to snap commands?
Sylvain
More information about the Snapcraft
mailing list