ATOMシステム規定のアプリで開くが動作しない、対処

ATOM以前より使っていたプラグイン、最近のATOM 1.60.0 で、前にも入れて使ったことのある
oboe2uran.hatenablog.com
この、open-unsupported-files を入れて、
Excel をダブルクリックで Excel アプリで開けずに、エラー
 Uncaught TypeError: shell.openItem is not a function
となってしまう。

エラーメッセージを頼りに原因は、以下を見ると、、、
Uncaught TypeError: shell.openItem is not a function · Issue #20 · skandasoft/open-unsupported-files · GitHub

Electronのドキュメント
shell.openItemは完全に非推奨になったから。。。

対処方法があって、open-unsupported-files.coffee で、使っている shell.openItem を
shell.openPath に変えること。

ATOMをインストールしたパッケージ  open-unsupported-files/lib/ の下に
open-unsupported-files.coffee が存在するはずで、

C:\Users\{ユーザ名}\.atom\packages\open-unsupported-files\lib\
open-unsupported-files.coffee
を開き、

を開き、
21行目あたりの shell.openItem の箇所

      shell.openItem(path)

以下に変更する。

      shell.openPath(path)

ATOMを再起動すれば、ダブルクリックで xlsx 拡張子は、Excel で開けるようになる。