Atom startup error


#1

I have this error when atom starts up.

Window load time: 5587ms

2
/usr/share/atom/resources/app.asar/src/buffered-process.js:260 Uncaught BufferedProcessError: Failed to spawn command /usr/share/atom/atom. Make sure /usr/share/atom/atom is installed and on your PATH

However,my PATH has '/usr/share/atom/' and is like so: echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/share/atom

And the folder contents are:
/usr/share/atom $ ls -al
total 108992
drwxr-xr-x 5 root root 4096 Sep 15 00:19 .
drwxr-xr-x 320 root root 12288 Sep 19 15:20 …
-rwxr-xr-x 1 root root 11224136 Sep 2 12:26 atom
drwxr-xr-x 2 root root 4096 Sep 15 00:19 chromedriver
-rw-r–r-- 1 root root 8437142 Sep 2 12:26 content_shell.pak
-rw-r–r-- 1 root root 10457856 Sep 2 12:26 icudtl.dat
-rw-r–r-- 1 root root 76984472 Sep 2 12:26 libchromiumcontent.so
-rw-r–r-- 1 root root 2496440 Sep 2 12:26 libffmpegsumo.so
-rw-r–r-- 1 root root 520152 Sep 2 12:26 libgcrypt.so.11
-rw-r–r-- 1 root root 31256 Sep 2 12:26 libnotify.so.4
-rw-r–r-- 1 root root 1055 Sep 2 12:26 LICENSE
drwxr-xr-x 2 root root 4096 Sep 15 00:19 locales
-rw-r–r-- 1 root root 413533 Sep 2 12:26 natives_blob.bin
drwxr-xr-x 4 root root 4096 Sep 15 00:19 resources
-rw-r–r-- 1 root root 985220 Sep 2 12:26 snapshot_blob.bin
-rw-r–r-- 1 root root 7 Sep 2 12:26 version

So why am I getting the error?
Thanks in advance.