Launch "Snappy" Atom from Terminal

Launch "Snappy" Atom from Terminal

Formerly, I was using atom installed from the Ubuntu official repos. I could easily open a project (folder) typing atom .

I recently have installed it using the snap package that Ubuntu provides. Everything looks fine, except for if I try to launch it as I used to do it I get the following error:

> $ atom .                                                         
No command 'atom' found, did you mean:
 Command 'atrm' from package 'at' (main)
 Command 'atop' from package 'atop' (universe)
 Command 'atoms' from package 'horae' (multiverse)
 Command 'atom4' from package 'atom4' (universe)
 Command 'atobm' from package 'x11-apps' (main)
zsh: command not found: atom

However, I can launch it normally from the unity launcher.

This is Ubuntu 16.04 and Unity as DE.

1 Answer

You may launch atom by the following command:

snap run atom

In order to launch it using the shorter command atom, you can set this alias:

alias atom='snap run atom'

and write it into your .bashrc or .zshrc file, so every new terminal instance has it automatically set.

2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.