How to add line /snap /bin to $ path from tumbleweed

Hi.
I installed the snap installer on my tumbleweed however the line /snap /bin was not added to the $ Path of environmental variables after restart.
How to add line /snap /bin to $ path from tumbleweed?
I already searched the internet but … each distro do it in its own way the confusion is total.

How to fix it?
Tanks.

export PATH=/snap:$PATH
export PATH=/bin:$PATH

or did you mean /snap/bin ?:

export PATH=/snap/bin:$PATH

Se details here:

https://www.howtogeek.com/658904/how-to-add-a-directory-to-your-path-in-linux/

1 Like

Huh? Why? Isn’t the way described in the wiki working?
https://en.opensuse.org/Snap

You then need to either reboot, logout/login or source /etc/profile to have /snap/bin added to PATH.

edit:

To make the changes permanent for your user:

sudo nano .bashrc

at the bottom add:

export PATH=/bin /snap:$PATH

Hold CTRL and press X

Press Y and then Enter to save

Reboot for good measure

end of edit

export PATH=/snap:$PATH
export PATH=/bin:$PATH

or did you mean /snap/bin ?:

export PATH=/snap/bin:$PATH

Se details here:

https://www.howtogeek.com/658904/how-to-add-a-directory-to-your-path-in-linux/

1 Like

IMO it is a confusing post. I assume there are white space characters spread all over the place. Thus it is a bit unclear what the OP is meaning.

Hi.
I installed exactly the snap as it describes on the wiki but the line for snap/bin was not automatically introduced at $ Path.

Echo $PATH command output:

Strix:/home/eragontux # echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Strix:/home/eragontux #

I already added the line in .Bashrc and ok … but it is not permanent to everyone.
I already added the line at the end of /etc /profile file but the line not performed and everything remains without solution.

Previously I even added the line to the file /etc/environment but on tumbleweed I don’t know where to add the line so that it is permanent and accessible to everyone

Tanks.

So you mean $PATH? Then please spell it like that. No extra spaces, no a instead of A, etc. That is all very important. The system will not understand you and people here will also not understand you.

Again wrong, there should be no space between /etc and /profile, it should be /etc/profile.

And please SHOW that line. How can we comment on it being correct or not when we do not see it?

Thank you all.

I apologize for my English (I am Portuguese and sometimes forced to resort to Google translator) which sometimes to problems of understanding. I apologize once again but I think here there was a little exaggeration.
I simply wanted to add the snap to the environment variables permanently.

Good! For all who suffer from this problem below when they have to install Skype from the snap installer and the installer has not added the SNAP variable in the variable environment.

asus-x93sm:/home/eragontux # snap install skype
Warning: /snap/bin was not found in your $PATH. If you’ve not restarted your session since you installed snapd, try doing that. Please see How to fix snap binaries not found - snapd - snapcraft.io for more details.

skype 8.119.0.201 from Skype✓ installed
WARNING: There is 1 new warning. See ‘snap warnings’.

To fix this permanent. On a console as root run the following command:
echo “export PATH=$PATH:/snap/bin” >> /etc/bash.bashrc

Reboot the system.

Tanks you all.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.