[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
For any current Zsh-converts suffering from this: I have the solution: 1) sudo edit your zprofile: `sudo (vim, nano, vi) /etc/zsh/zprofile` 2) Add these two lines to the end of the profile to ensure Zsh is sourcing the ENV vars that lets wayland etc. find your snap apps: ``` emulate sh -c 'source /etc/profile.d/apps-bin-path.sh' emulate sh -c 'source /etc/profile.d/flatpak.sh' ``` 3) save the file & reboot your machine Just used it and it worked perfectly, source: https://realjenius.com/2020/01/12/kde-neon-snap-apps-missing/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
** Changed in: snapd (Ubuntu) Assignee: (unassigned) => Kartik Sharma (kartiksharma2oo1) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Same problems here using Kubuntu 20.04 and fish shell. snap paths are missing in PATH and XDG vars. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
bash from the tty receives the PATH with "/snap/bin" via sourcing "/etc/profile" (bash initialization file), and does not have it set before this. zsh from the tty does not receive the path, since it doesn't source "/etc/profile", and "/etc/zsh/zshenv", which it does source, does not update the PATH. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I partially retract my comment. The dash is lexicographically earlier. However, the fix pushed by vogt does not help with making "/snap/bin" available in zsh. I'll make a comment later if it turns out that these settings ought to have been be propagated to the environment in zsh from their current location but fail to. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
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 Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
@maciek-borzechi: snapd does not appear in any of the two queries: ❯ systemctl --user show-environment |grep XDG_DATA_DIRS XDG_DATA_DIRS=/home/nicolas/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/ ❯ sudo strings /proc/2748/environ | grep XDG_DATA_DIRS XDG_DATA_DIRS=/home/nicolas/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/ Any suggestions? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
@nicocarbone on a running system, can you run `systemctl --user show- environment |grep XDG_DATA_DIRS` the output should include /var/lib/snapd/desktop. Then find the PID of gnome-shell, and run `sudo strings /proc//environ | grep XDG_DATA_DIRS`. The value should be identical to one you get from systemd. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Having this problem in focal dev. When running the wayland session snapd apps don't appear in the gnome-shell menu. They do in X11. Using zsh as default. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
The systemd way of inject environment does not fully address the problem. Simple `su -l ` where the 's shell is zsh is enough to demonstrate this. AFAICT this is also a problem with some desktop environments (non GNOME, or KDE), where the DE environment isn't updated for some reason. >From what I can tell, Fedora imports respective files from /etc/profile.d using ksh emulation. Arch imports the whole /etc/profile using sh emulation. Perhaps it's worth reconsidering. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I'm using Lubuntu 19.10 (lxqt, of course) with the default SDDM setup and I ran into this issue as described in #26. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
The environment is patched via a user session generator, which is applied automatically when user session starts. If anyone is still affected by this problem, please indicate your Ubuntu version as well as which desktop environment and login manager you use. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
It is strange. My XDG_DATA_DIRS has the value: /usr/local/share/:/usr/share/:/var/lib/snapd/desktop , and I have never had issues with that. Only the part added to PATH has bothered me. Actually I have no idea where is gets this value from. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I have the same problem with snaps on Lubuntu. Snap packages would not show up in the launcher. Following the comment above: https://forum.snapcraft.io/t/desktop-snaps-do-not-appear-in-the-dash- menu-on-gnome-in-17-10-final-beta/2340/14 fixed this. It looks like FlatPak has already figured this out by adding paths to XDG_DATA_DIRS automatically. It is a bit concerning that this answer is from 2 years ago. Is some help needed to patch this? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
The problem was not fixed with the above, as I discovered that of course it only fixes my terminal. Other applications (e.g. PyCharm) could not see the executables from snaps. Creating ~/.pam_environment with the following content did the trick: PATH DEFAULT=${PATH}:/snap/bin -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I jumped the gun a bit. What I ment was to write that sourcing /etc/profile.d/apps-bin-path.sh fixes commands being available again. I have the following in my .zshrc: if [ "$XDG_SESSION_TYPE" = "wayland" ] ; then ...other wayland fixes... # Fix environment for Wayland + zsh + snapd if [ -f "/etc/profile.d/apps-bin-path.sh" ] ; then source /etc/profile.d/apps-bin-path.sh fi fi -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I can confirm the observations of #19 for Ubuntu 19.10 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I use bash and still face this issue. The fix proposed at #18 doesn't work entirely. You should add double quotes to the PATH and print the new line properly by replacing echo with printf: mkdir -p ~/.config/environment.d printf "PATH=\"$PATH:/snap/bin\"\nXDG_DATA_DIRS=\"${XDG_DATA_DIRS:-/usr/local/share:/usr/share}:/var/lib/snapd/desktop\"" > ~/.config/environment.d/60-snap-icons-and-bin.conf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
** Changed in: snapd (Ubuntu Bionic) Assignee: (unassigned) => laurent le toudic (lolo645645) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: snapd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
** Changed in: snapd (Ubuntu) Status: Confirmed => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I've put together a PR to set XDG_DATA_DIRS via environment.d, as was done for PATH: https://github.com/snapcore/snapd/pull/6813 When this is merged and released, it should remove the need for any special user configuration. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
The fix by @dolphytr works, but it's still incomplete. It helps to bring back apps to the menu, but they still can't be run from the command line. For this to work, I had to apply the commands from #18 plus add these two lines to my $HOME/.zshrc: # Fix environment for Wayland + zsh + snapd source /etc/profile.d/apps-bin-path.sh As these are just workarounds, the root of the problem seems to be somewhere else: The script in /etc/profile.d/apps-bin-path.sh takes care of all the neccessary changes. It is sourced when starting an X11 session but not when starting a Wayland session (at least not in combination with zsh). I suggest to reopen this ticket until that's solved. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
it works me: https://forum.snapcraft.io/t/desktop-snaps-do-not-appear- in-the-dash-menu-on-gnome-in-17-10-final-beta/2340/13 mkdir -p ~/.config/environment.d echo "PATH=$PATH:/snap/bin\nXDG_DATA_DIRS=\"${XDG_DATA_DIRS:-/usr/local/share:/usr/share}:/var/lib/snapd/desktop\"" > ~/.config/environment.d/60-snap-icons-and-bin.conf -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I am on 18.10. New installed not updated and when i Switch from bash to zsh snap stops working. when i switch back to bash snap apps works. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I marked the zsh part of this issue as invalid as we now have a way to inject environment into all the shells uniformly. ** Changed in: snapd (Ubuntu Xenial) Status: New => Confirmed ** Changed in: snappy Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Note that I was using Ubuntu 18.04 which is important. The older versions of Ubuntu don't have recent enough systemd to support environment.d injections. ** Changed in: snapd (Ubuntu Bionic) Status: New => Fix Released ** Changed in: zsh (Ubuntu Xenial) Status: New => Invalid ** Changed in: zsh (Ubuntu Bionic) Status: New => Invalid ** Changed in: zsh (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I just tested 2.35 build and I have /snap/bin at the end of my PATH. I'm using zsh in Ubuntu 18.04 for this experiment. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
** Also affects: zsh (Ubuntu Bionic) Importance: Undecided Status: New ** Also affects: snapd (Ubuntu Bionic) Importance: Undecided Status: New ** Also affects: zsh (Ubuntu Xenial) Importance: Undecided Status: New ** Also affects: snapd (Ubuntu Xenial) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
I pushed https://github.com/snapcore/snapd/pull/5390 which should fix this with the next snapd release. It will drop in a systemd environment configuration file that adds /snap/bin. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
This is still manifested on Ubuntu 17.10. After some digging it seems later versions of Systemd supports a /etc/environment.d which works regardless of Bash/ZSH/Other shell. To me it seems any solution should use it. I have posted a temp fix (also fixing desktop search) using environment.d for your user here: https://forum.snapcraft.io/t/desktop- snaps-do-not-appear-in-the-dash-menu-on-gnome-in-17-10-final- beta/2340/14 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
** Patch added: "debdiff for xenial" https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1640514/+attachment/4778465/+files/zsh_5.1.1-1ubuntu2.1.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Looks like there is no zprofile.d directory (similar to profile.d) so there is nothing that snapd itself can hook into. This really needs to be fixed in zsh itself apparently. ** Patch added: "fix for yakkety/zesty" https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1640514/+attachment/4778464/+files/zsh_5.2-5ubuntu1.1.debdiff -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
@xtaran: thanks for the useful info! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: snapd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: zsh (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
@niemeyer: Nope, if you want the equivalent to /etc/profile, then use /etc/zsh/zprofile. See https://tanguy.ortolo.eu/blog/article25/shrc why zshenv is not equivalent to profile. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Indeed. The right fix is probably a trivial change in /etc/zsh/zshenv. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
Additionally, /etc/profile.d/ in Debian/Ubuntu is a feature implemented in /etc/profile which is installed by base-files in its postinst script. But zsh only loads /etc/profile if invoked in its sh or ksh emulation mode (which is not the case if invoked as "zsh"). I don't think that we should change that behaviour. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
@faenil: What you're citing is RedHat-specific and doesn't seem to related to any commit in the upstream or the Debian zsh git repository. So this is basically a Debian-/Ubuntu-specific feature request for something that RedHat already kicked out again. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
the zsh bug I linked was marked as NOTABUG. It seems zsh used to source /etc/profile, but that was changed at one point, to fix some other problem. So "fixing" zsh does not seem like a viable option :/ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1640514] Re: /snap/bin is not added to the PATH when using zsh
not really a snappy bug, is it ? zsh should be fixed ... ** Also affects: zsh (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1640514 Title: /snap/bin is not added to the PATH when using zsh To manage notifications about this bug go to: https://bugs.launchpad.net/snappy/+bug/1640514/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs