Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

MacOS M1 CPU Screen Recording Permission Issue Fix #1231

Open
codercodingthecode opened this issue Sep 20, 2024 · 0 comments
Open

MacOS M1 CPU Screen Recording Permission Issue Fix #1231

codercodingthecode opened this issue Sep 20, 2024 · 0 comments

Comments

@codercodingthecode
Copy link

MacOS M1 CPU Screen Recording Permission Issue Fix

Issue

Many users have reported screen permission issues on M1 Macs, with some resorting to installing Rosetta despite using an M1-specific build. The root cause is that the node package used to request permissions is based on Intel architecture, thus requiring Rosetta on M1 chips.

Solution

I've made the following modifications to resolve this issue:

  1. Upgraded Node.js version to 16 to use M1 APIs natively.
  2. Removed the Intel-dependent library mac-screen-capture-permissions.
  3. Utilized Electron's native API support for permission requests.

These changes allow the app to request and use screen recording permissions on M1 Macs without the Rosetta workaround.

Implementation Details

  1. Updated package.json to use Node.js 16.
  2. Removed mac-screen-capture-permissions from dependencies.
  3. Modified the screen capture permission code to use Electron's systemPreferences API:

Application

I've built the release version of the app with these changes, and it's available in the release section of my forked repository.

  1. Download the zipped app from release.
  2. Unzip and move it to the Applications folder.
  3. Grant the necessary permissions.
  4. Launch the app and verify that screen recording works without Rosetta.

This solution should allow Kap to function natively on M1 Macs without any Intel-based dependencies for screen recording permissions.

https://github.com/codercodingthecode/Kap/releases/tag/m1-permission

If there is an interest from the maintainers, I can open a pr with these changes to the main project.

image

Kapture 2024-09-20 at 13 39 14

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant