Add missing shell methods on atom global - #1564
Conversation
|
I tried them all out in the dev tools console and they seem to work fine. Even substituted the Also checked that |
|
Just pushed a commit that removes (nearly) all core usages of There are other usages of Various packages
|
|
This is one that I'd ordinarily threaten to land eventually if nobody speaks up… except that it does make pretty extensive changes. New specs were written and CI is green, but it would be nice to get another thumbs-up from someone because this PR has new commits since @Daeraxa's review. |
Closes #1563.
This adds in the following methods:
atom.trashItematom.openPathatom.openExternalatom.showItemInFolderAll of these exist on
require('electron').shell, but are not 100% able to be called from the renderer for one reason or another. As with many other methods defined on theatomglobal, these methods proxy to the main process via IPC, then receive the outcome from the main process.Specs are present for
atom.trashItem, but I've got no clue how I'd test the others. That'll require manual testing.