-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Accessibility Permissions for the app deployed in macOS #1567
Comments
I think if we allow terminal to have screen recording permissions than the application will be able to do screen recording. |
Hi @abdullah-lt! However, we will consider updating TCC.db entry. |
Hi @miketimofeev
Also as per this link, we were able to update |
@abdullah-lt sorry, I meant not the repo that shows an inability to insert anything into
Does this binary use some macOS software to capture the screen or the binary itself do all the job?
In the link, we updated not the |
@miketimofeev I have updated the above repo. Let me know if you require some more input.
It uses FFmpeg to capture video which is installed using brew |
@abdullah-lt thanks! I've cloned your repo and run
Then I logoned to the test VM and there were no security pop-ups there even though the Recorder process was running |
@miketimofeev That's strange. My actions are running from last 20 minutes and is stuck (probably waiting for access). |
@abdullah-lt strange indeed. My action based on your repo is also stuck and in the test VM, which took the run, there are no pop-ups neither testing_out.mov |
@miketimofeev The only thing I can think of is that somehow the system automatically denied screen recording permission to the terminal. Then the Recorder binary will be stuck forever waiting for permission. Could you try running ffmpeg command directly on the terminal which will give you better output on what is happening
If this doesn't work, just replace -i flag value with "1" instead of "0" If the command is still stuck, then just enable the screen recording permission for the terminal and again run the above command. It should work then and will create a file I have verified the same on my catalina system |
@abdullah-lt the problem is that it's not executed by the terminal directly, there is a level of abstraction that includes runner, which does all the job. So if I run
Next, I prepared a VM with SIP disabled and run the following script in action:
with a bit better result
And then it stuck as before.
I wonder if the issue is somehow related to non-interactive mode because it runs fine directly in the VM. |
@abdullah-lt looks like I've managed to find a solution 🥳
|
@miketimofeev That's great news. The above error looks like some encoding issue which can be solved by using a different encoder. Would it be possible to add the above SQL entry to the mac machines, so that we can use the screen recording feature of Mac? |
@abdullah-lt yes, I've just added the entry. The new image will be available next week if nothing blocks the deployment. I'll let you know when it's done. |
Thanks, @miketimofeev. Looking forward to it. |
@abdullah-lt we've successfully deployed the new image. Could you please check the behavior? |
@miketimofeev I have tested the screen recording and it's working now. Thanks for the quick deployment. Should I close the issue now? |
@abdullah-lt great! Yes, the issue can be closed. |
Description
I have an app that requires screen recording and full disk permission to work correctly. If the macOS machine had SIP disabled, I would have been able to do it by updating db entries of
TCC.db
.Area for Triage:
Apple
Question, Bug, or Feature?:
Question
Virtual environments affected
Expected behavior
Allow access to permissions as requested by the app deployed in the VM.
Actual behavior
When the app is run, a dialog box appears and ask to Grant Access.
Repro steps
Deploy an App that records the system (using ffmpeg)
The text was updated successfully, but these errors were encountered: