[Bug 1637220] Re: zsh has no /snap/bin in PATH

Axel Beckert abe at debian.org
Sun Nov 12 14:08:52 UTC 2017


zsh sources /etc/zsh/zprofile by default. /etc/profile (and hence
/etc/profile.d/) is only sourced in zsh's compatibility mode, i.e. when
zsh is called as sh or ksh. At least Debian does not provide such
symlinks and does not plan to do so in the future. (In contrary, Debian
deliberately stopped being advertised as ksh alternative. And it never
was advertised as /bin/sh alternative as the compatibility is not good
enough for that, and also not meant to be good enough by upstream.)

Zsh in Debian has not (yet) implemented something like e.g.
/etc/zsh/zprofile.d/ or so. So there's currently no way to add zprofile
snippets via other packages. (Zsh in Debian though supports per-package
vendor functions and completions.)

So from my point of view the only way to solve this issue from the zsh
side is to provide a means for other packages to add snippets to
zprofile. Once that's done, snapd needs to add an according snippet for
zsh, too.

As a workaround, zsh users should update their $PATH manually in either
/etc/zsh/zprofile (exists, only comments) or (as far as I can see)
~/.zprofile.

-- 
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/1637220

Title:
  zsh has no /snap/bin in PATH

Status in snapd package in Ubuntu:
  Triaged
Status in zsh package in Ubuntu:
  Confirmed

Bug description:
  Environment:
  XPS13 laptop, just upgraded from Yakkey to Zesty
  snapd version 2.16+160.10ubuntu1
  ubuntu-core version 16.04.1 r423

  How to reproduce:
  1) sudo snap install --edge --devmode ubuntu-calendar-app
  2) run ubuntu-calendar-app (or ubuntu-calendar-app.ubuntu-calendar-app)

  Expected outcome:
  The app runs

  Actual outcome:
  "Command not found"

  Additional info:
  The app runs successfully if started with "snap run ubuntu-calendar-app"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1637220/+subscriptions



More information about the foundations-bugs mailing list