On a freshly installed/updated CentOS 8.1 virtual machine (default Workstation installation) I see the following warning when installing any snap:
$ sudo snap install --beta authy Warning: /var/lib/snapd/snap/bin was not found in your $PATH. If you've not restarted your session since you installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more details. authy (beta) 1.8.0 from Authy (authy-twilio) installed $
/var/lib/snapd/snap/bin is in my
$ systemctl --user show-environment | grep ‘^PATH’ PATH=/home/<username>/.local/bin:/home/<username>/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/var/lib/snapd/snap/bin $
While this error message seems innocuous (the installed snaps do run) it is really annoying and should be fixed as it confuses end-users who may mess up their machine in an attempt to fix an error which doesn’t exist (see for example CentOS 8 snapd install of Authy doesn't show up in applications folder).
snapd generates SELinux errors (far too often) this issue is not necessarily related to SELinux as it happens in permissive mode too (after
sudo setenforce 0).
Also happens both in X11 and wayland graphical sessions.