<p dir="auto">I had originally installed atom via <code class="notranslate">brew cask install</code> and the <code class="notranslate">atom</code> command was working fine. Then, for reasons, I uninstalled the cask version and installed atom from atom.io. Ever since, despite performing "Install Shell Commands" and making sure the symlinks are correct, the <code class="notranslate">atom</code> command fails to load the current folder. It's highly likely this is isolated to my installation only, but I'm having a hard time figuring out where things go wrong.</p>
<p dir="auto">I have tried:</p>
<ul dir="auto">
<li>Removing ~/.atom entirely</li>
<li>Exporting a nearly uncustomized <code class="notranslate">$PATH</code> before launching atom</li>
<li>Atom -&gt; Install Shell Commands (and manually checking the symlinks after)</li>
<li>Launching from various folders, just in case there was something weird in the pathname</li>
</ul>
<p dir="auto">So far nothing has worked.</p>
<p dir="auto">Atom seems to be getting the <code class="notranslate">--executed-from</code> argument just fine and with a correct value. For example, if I launch atom in /tmp, I can see the following command with <code class="notranslate">ps aux | grep -i atom</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/Applications/Atom.app/Contents/MacOS/Atom --executed-from=/tmp --pid=77617 --path-environment=/Users/redacted/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"><pre class="notranslate"><code class="notranslate">/Applications/Atom.app/Contents/MacOS/Atom --executed-from=/tmp --pid=77617 --path-environment=/Users/redacted/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
</code></pre></div>
<p dir="auto">The launched editor just shows a blank untitled document, does not open the tree view, and Cmd+P says that the project is empty. The <code class="notranslate">--pid</code> doesn't point to any existing process but then again I don't really know what it's for anyway.</p>
<p dir="auto">File -&gt; Open does work.</p>
<p dir="auto">Any ideas? I'm on 0.209.0 currently but the issue has persisted for a month or so.</p>
<p dir="auto">Here's the path to the atom script in case it helps:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➜  /tmp  readlink /usr/local/bin/atom
/Applications/Atom.app/Contents/Resources/app/atom.sh"><pre class="notranslate"><code class="notranslate">➜  /tmp  readlink /usr/local/bin/atom
/Applications/Atom.app/Contents/Resources/app/atom.sh
</code></pre></div>
<p dir="auto">When executing v 0.200.0 from command line, Atom open an empty untittled file instead the ones from that directory, and in fact the tree view don't get open both with the shortcut or the menu option. Other tabs like preference are working. After executing <code class="notranslate">atom .</code> the tree view gets shown and it works normally, and also now it gets shown when launching it without arguments too as it should do.</p>