Misleading warning about /snap/bin not being in PATH

Bug #1890484 reported by Claudio Matsuoka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Low
Unassigned

Bug Description

The warning message "/snap/bin was not found in your $PATH. If you've not restarted your session since you installed snapd, try doing that." is issued in the situation the message describes, but also when /snap/bin is not in the secure path defined in /etc/sudoers. In the latter case the warning could be clearer about the real issue, telling the user that the directory is not in PATH when it actually is there is very confusing.

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

Which distro is that? We already automatically skip the warning on Fedora, Debian and openSUSE.

Changed in snapd:
status: New → Incomplete
Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

To clarify: the message is technically correct in the sense that the directory is not in PATH when executing the command with sudo, however trying to restart the session as directed doesn't work and the user may also verify his environment and see that the directory is already listed. In this case, stating that /snap/bin is not in the sudo secure path would be more informative.

Revision history for this message
Claudio Matsuoka (cmatsuoka) wrote :

This should happen in any distro using secure_path without listing /snap/bin, but it was specifically spotted in the Raspberry Pi OS.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for snapd because there has been no activity for 60 days.]

Changed in snapd:
status: Incomplete → Expired
Changed in snapd:
status: Expired → New
Changed in snapd:
importance: Undecided → Low
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.