wulkano / Aperture

Record the screen on macOS
MIT License
1.24k stars 112 forks source link

All Screens called "Unknown screen"? #78

Closed chrisspiegl closed 2 years ago

chrisspiegl commented 2 years ago

I am using Aperture through Aperture-Node to create simple screen recordings.

When I run the code to list all the available screens, all of them show up as Unknown screen.

[ { id: 1, name: 'Unknown screen' } ]

Is there a way to improve this so that it shows something more valuable?

I am on macOS 12.3 with a M1 Max machine.

chrisspiegl commented 2 years ago

I found two related node.js packages. Maybe these help bring the correct names over?

I chose to go with the node-mac-displays in my own project for now. The id this library provides is equal to the one provided by aperture-node so it's compatible and it spits out human friendly names for the displays, like:

Possibly this lib could be used to achieve this in this lib as well? Or possibly copy the approach taken by the lib?

sindresorhus commented 2 years ago

https://github.com/wulkano/aperture-node/releases/tag/v6.1.3

chrisspiegl commented 2 years ago

That was quick, thank you @sindresorhus ❤ 🦄 .