/snap/bin not in path for juju run/juju ssh
Bug #1692866 reported by
Alberto Donato
This bug report is a duplicate of:
Bug #1660273: /etc/environment does not include /snap/bin in $PATH.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Incomplete
|
Wishlist
|
Unassigned | ||
snapd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The /snap/bin directory is not included in PATH in "juju run" and "juju ssh" commands.
Using full path works of course, but I think the path should be included by default.
To post a comment you must log in.
https:/ /www.reddit. com/r/linuxques tions/comments/ 5gkv87/ what_is_ responsible_ for_adding_ snapbin_ to_path/
seems to say that /snap/bin is added to system profile.d directories d/apps- bin-path. sh
/etc/profile.
The question remains why (assuming snapd is installed), we aren't seeing it
added to the PATH when running charm hooks. It seems that profile.d is only
loaded by login shells.
I'm not sure that juju should be concretely adding knowledge about snap's
paths directly, vs snap adding itself to the default system paths all the
time rather than only in login shells.
On Tue, May 23, 2017 at 3:25 PM, Alberto Donato <email address hidden>
wrote:
> Public bug reported: /bugs.launchpad .net/bugs/ 1692866 /bugs.launchpad .net/juju- core/+bug/ 1692866/ +subscriptions
>
> The /snap/bin directory is not included in PATH in "juju run" and "juju
> ssh" commands.
>
> Using full path works of course, but I think the path should be included
> by default.
>
> ** Affects: juju-core
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to juju-
> core.
> https:/
>
> Title:
> /snap/bin not in path for juju run/juju ssh
>
> To manage notifications about this bug go to:
> https:/
>