'atom' command not found


I installed Atom from the Software Center in Linux Mint. I can launch it from the start menu, but if I enter “atom” in the command line, I get an error: “atom: command not found”.
“which atom” doesn’t output anything, and there’s no atom syimlink in /usr/local/bin, which is already in my $PATH.
The command with which the program executes from the start menu is:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=atom --file-forwarding io.atom.Atom @@ %F @@
But I don’t really know what to do with that information in order to open a directory in Atom from the CLI.
Thank you.


I once tried the flatpak version of Atom and had all sorts of trouble with it.
If you want to run Atom on Mint, it is best to follow the instructions on this website:
This way you always have an official up-to-date version of Atom.