I can't use snap packages, even if installed
[SOLUTION to QUESTION1]
There is some kind of bug in I-do-not-know-where.
To temporally solve this, I had to copy programname.desktop
from /snap/programname/current/programname.desktop
to /usr/share/applications
(with sudo) and then all was fixed: programname shows in the gnome menus.
[SOLUTION to QUESTION2]
The snap binary and desktop directories will not automatically be added to your environment variables. In order to solve this, I added the following line to /etc/zsh/zprofile
:
emulate sh -c 'source /etc/profile'
Comments
-
Cirelli94 almost 2 years
I installed Spotify, VS Code and Atom snap packages. I used them a couple of days. Today, I can't use them. There are two different problems:
They aren't in Gnome Launcher with all other programs.
I can't use them starting them via cli because "command not found". I'm using zsh.
-
Fabby over 6 yearsWelcome to Ask Ubuntu! :-) The last command is dangerous when run from the root directory! Could you edit and expand and provide exact details for the packages the OP is referring to?
-
Nissaar over 6 years@Fabby is this okay ?
-
Cirelli94 over 6 yearsOk, i removed atom folder from ~/snap/atom . Sadly this doesn't solve my problem :(
-
Nissaar over 6 yearsbuild it again if it still fails use 'mkdir name' to make a new directory and build atom there. Then use 'cd name' to access the directory and run atom from there.
-
Cirelli94 over 6 years@Nissaar Why do you use the term 'build'? I'm just installing it with
snap install
... I do not choose any folder! -
Nissaar over 6 yearsin every snap tutorial ive seen 'build the snap.' And not 'install snap'. Ive seen that for travis, offlineimap etc... maybe im wrongly using the word. Did it work ?
-
Cirelli94 over 6 yearsI can't 'build' any snap in any folder. I just
snap install atom
. If I domkdir atom & cd atom & snap install atom
it makes no sense to me to do something like this..... -
Cirelli94 over 6 yearsTo have an idea where snaps are installed etcetera askubuntu.com/a/976039/396145
-
m93a about 5 yearsRelated
snapd
bug: bugs.launchpad.net/snapd/+bug/1775340 -
m93a about 5 years
emulate sh -c 'source /etc/profile'
breaks oh-my-zsh themes for me -
Cirelli94 about 5 yearstry
emulate sh -c 'source /etc/profile.d/apps-bin-path.sh'
as in the linked question