You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following function dies if a screenshot was already taken. I suggest overwriting it or simply deleting before creating an image there. Also, a random name can be used.
Error occurred in handler for 'smallAreaScreenShot': Error: ENOENT: no such file or directory, open 'C:\Users\admin\Documents\booo\.webpack\main\screenCapture_1.3.2.bat'
at Object.openSync (node:fs:600:3)
at Object.func [as openSync] (node:electron/js2c/asar_bundle:2:1822)
at Object.readFileSync (node:fs:468:35)
at t.readFileSync (node:electron/js2c/asar_bundle:2:9165)
at copyToTemp (C:\Users\admin\Documents\booo\.webpack\main\index.js:56790:15)
at C:\Users\admin\Documents\booo\.webpack\main\index.js:56810:20
at new Promise (<anonymous>)
at windowsSnapshot (C:\Users\admin\Documents\booo\.webpack\main\index.js:56800:10)
at $c550fd30f5174fcd$export$ed45beb1e325e9b (C:\Users\admin\Documents\booo\.webpack\main\index.js:19138:74)
at C:\Users\admin\Documents\booo\.webpack\main\index.js:74228:72 {
errno: -4058,
syscall: 'open',
code: 'ENOENT',
path: 'C:\\Users\\admin\\Documents\\booo\\.webpack\\main\\screenCapture_1.3.2.bat'
}
should add recursive: true
fs.mkdirSync(path.join(os.tmpdir(), 'screenCapture'), {recursive: true})
The text was updated successfully, but these errors were encountered: