Skip to content

Commit

Permalink
fix(darwin): ENOTDIR on macOS in packaged Electron app
Browse files Browse the repository at this point in the history
remove unnecessary folder change

Fixes #213
  • Loading branch information
pityulin authored Jul 21, 2021
1 parent ff141ca commit 7360d9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/darwin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,7 @@ function all () {
listDisplays()
.then((displays) => {
const tmpPaths = displays.map(() => temp.path({ suffix: '.jpg' }))
exec('screencapture -x -t jpg ' + tmpPaths.join(' '), {
cwd: __dirname
}, function (err, stdOut) {
exec('screencapture -x -t jpg ' + tmpPaths.join(' '), function (err, stdOut) {
if (err) {
return reject(err)
} else {
Expand Down

0 comments on commit 7360d9f

Please sign in to comment.