Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

AltTab doesn't ask for ScreenRecording permission on 10.15.4 #340

Closed
vansickle opened this issue May 18, 2020 · 5 comments
Closed

AltTab doesn't ask for ScreenRecording permission on 10.15.4 #340

vansickle opened this issue May 18, 2020 · 5 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@vansickle
Copy link

Describe the bug

Mac OS 10.15.4

AltTab 3.23.1 release

  • On start app asked to give accessibility permission. After it was given - nothing happened when app restarted, it just silently finished.
  • When tried to run via Terminal received ""Before using this app, you need to give permission in System Preferences > Security & Privacy > Privacy > Screen Recording."
    "Please authorize and re-launch."
    "See https://dropshare.zendesk.com/hc/en-us/articles/360033453434-Enabling-Screen-Recording-Permission-on-macOS-Catalina-10-15-"
  • But the problem is - AltTab never asked me for "Screen Recording" permission. It doesn't appear in ' Security & Privacy > Privacy > Screen Recording' and this 'Screen Recording' doesn't have an option to manually add an app.

master

The same results as 3.23.1 when compiled and run latest master

Other similar apps

Tried how similar apps handle this:

  • TeamViewer, it has useful dialog to show given permissions, but effectively has the same problem - no request for screen recording from app, doesn't appear in System Preferences
  • QuickTime - works fine, when tried screen record it asked me for permissions and appeared in SysPrefs where I could check the checkbox for it

AltTab 1.14.1

When searching through issues found that initial Screen Recording support in AltTab was made differently, tried it and it worked fine - asked me for permission, appeared in System Preferences and worked.

@vansickle vansickle added the bug Something isn't working label May 18, 2020
@vansickle vansickle changed the title AltTab doesn't appear in ScreenRecording permission on 10.15.4 AltTab doesn't ask for ScreenRecording permission on 10.15.4 May 18, 2020
@lwouis lwouis added the duplicate This issue or pull request already exists label May 19, 2020
@lwouis
Copy link
Owner

lwouis commented May 19, 2020

Hi @vansickle! Thanks a lot for sharing this nicely documented bug report!

The System Permissions situation on macOS is a hot mess unfortunately. Just to give you an idea, there is no public API from Apple to check if Screen Recording permission was granted, so we use a private API called SLSRequestScreenCaptureAccess for that.

I will close this ticket as a duplicate of #127 as I documented a lot of things there already on how we could tackle all the issues with macOS System Permissions. I also shared a very in-depth post I found outlining the issues with the OS not showing the user the permission grant popup after the first time, which may be the issue you faced here.

I'm wondering for instance, if the fact that it worked for you with 1.14.1 is not due to the fact that it's a different app technically. Maybe any version other than 3.23.1 would work for you as it would be the first time, and trigger the OS prompt?

In any case, i have already explored the issue quite a bit in #127, so let's continue the conversation there.

Of course, any PR would be accepted and merged promptly. Any technical pointers would help also, as this area is undocumented by Apple and any insight would help. Pointing to another OSS project that does it well would be a big thumbs up also 👍

@lwouis lwouis closed this as completed May 19, 2020
@vansickle
Copy link
Author

vansickle commented Jun 5, 2020

I know the issue is closed, but still wanna share solution to the problem I had.

tccutil reset ... didn't help me, but PRAM reset did
So if AltTab permission request to screen recording doesn't appear for you - try reset PRAM/NVRAM (described here) - after that latest AltTab finally asked for permission properly.

Why it happened to me? My guess is that it may be connected to the fact that I had System Integrity Protection disabled

@kissge
Copy link

kissge commented Sep 19, 2020

I suppose the OP's problem was misread.
I'm having the same issue, although this is my first time install.
Under this situation, it's impossible to use AltTab at all...

image

@lwouis lwouis reopened this Sep 19, 2020
@lwouis
Copy link
Owner

lwouis commented Sep 25, 2020

@lwouis
Copy link
Owner

lwouis commented Jan 25, 2021

I implemented the above new workaround to detect Screen Recording permission (see #704 (comment)) in the just released v6.13.0. Hopefully it fixes this issue. Please let me know if you still face it on the latest version, and I'll re-open this issue 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants