[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Johannes Choo
1640514 at bugs.launchpad.net
Fri Apr 24 01:14:59 UTC 2020
This still affects 19.10 eoan.
I hope a bug administrator can update the status to reflect that.
The push by vogt https://github.com/snapcore/snapd/pull/5390/files
unfortunately does not work since by environment.d folder looks like
this:
-rw-r--r-- 1 root root 106 Oct 30 20:17 990-snapd.conf
lrwxrwxrwx 1 root root 16 Feb 6 22:45 99-environment.conf -> /etc/environment
Notably, 99-envorinment.conf is executed after 990-snapd.conf since it
is lexically later, and after 990-snapd.conf writes
PATH=$PATH:/snap/bin
we have 99-environment.conf overwriting
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
it should be noted that 99-environment.conf is provided by the systemd
package. I'll also raise a bug there about the naming of
99-environment.conf .
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to zsh in Ubuntu.
https://bugs.launchpad.net/bugs/1640514
Title:
/snap/bin is not added to the PATH when using zsh
Status in Snappy:
Fix Released
Status in snapd package in Ubuntu:
Confirmed
Status in zsh package in Ubuntu:
Invalid
Status in snapd source package in Xenial:
Confirmed
Status in zsh source package in Xenial:
Invalid
Status in snapd source package in Bionic:
Fix Released
Status in zsh source package in Bionic:
Invalid
Bug description:
--- Environment ---
Ubuntu Zesty 17.04 (dev)
zsh
snapd 2.16
--- Description ---
zsh does not seem to load the scripts in /etc/profile.d/ (see https://bugzilla.redhat.com/show_bug.cgi?id=88457 ).
As a consequence, /snap/bin is not added to PATH, and running snaps from terminal (without snap run) does not work
--- How to reproduce ---
1) Install zsh
2) try running apps provided by snaps from the shell, without using snap run
To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions
More information about the foundations-bugs
mailing list