get-windows icon indicating copy to clipboard operation
get-windows copied to clipboard

active-win not working after release

Open thanhnvpk01168 opened this issue 3 years ago • 5 comments

This is the error when i log in catch

my code: let result="" try { result = await activeWindow() } catch (error) { console.log("erorr: ",JSON.stringify(error)) }

error: { "killed":false, "code":null, "signal":"SIGILL", "cmd":"/Users/myname/Documents/projecttest/dist/mas/AppTest.app/Contents/Resources/app.asar.unpacked/node_modules/active-win/main", "stdout":"", "stderr":"" }

Environment: macOS Big Sur 11.2.3 electron:11.2.1 node: 14.15.0 active-win: 7.6.0

Can anyone help me urgently? thanks in advance

thanhnvpk01168 avatar Jul 18 '21 10:07 thanhnvpk01168

@thanhnvpk01168 how fid you fix it? Me also facing the same issue on BigSur but in development environment as well.

ahmedmukhtar1133 avatar Aug 10 '21 20:08 ahmedmukhtar1133

Are you guys using electron forge?

cesarvarela avatar Aug 16 '21 18:08 cesarvarela

Nope, I'm not using any boilerplate.

ahmedmukhtar1133 avatar Aug 17 '21 06:08 ahmedmukhtar1133

I'm facing the same issue. Has anyone already resolved the issue? Best regards.

smearumi avatar Nov 09 '21 19:11 smearumi

This could be due to the app not having the screen recording permission and getting killed by macOS. Does the permission prompt show up in your case? If not, try manually adding the screen recording permission to the binary active-win/main shown in the error.

ambarvm avatar Dec 08 '21 14:12 ambarvm