Removing the atom.exe file from %ALLUSERSPROFILE%\Chocolatey\bin\atom.exe and replacing it with %ALLUSERSPROFILE%\Chocolatey\bin\atom.bat with the following content allows specs to run via apm test and allows atom . or atom c:\windows to work.
@echo off
SET DIR=%~dp0%
cmd /c "%DIR%..\lib\atom.0.115.0\tools\atom\atom.exe %*"
exit /b %ERRORLEVEL%
Adding another line like https://github.com/atom/chocolatey/blob/master/chocolatey/tools/chocolateyInstall.ps1#L27 for
atom.bat
(Install-BinFile "apm" "$dest\Atom\atom.exe"
) would fix issues described:Removing the
atom.exe
file from%ALLUSERSPROFILE%\Chocolatey\bin\atom.exe
and replacing it with%ALLUSERSPROFILE%\Chocolatey\bin\atom.bat
with the following content allows specs to run viaapm test
and allowsatom .
oratom c:\windows
to work.What's the rationale for the
.exe
shim vs a.bat
?