mediar-ai / screenpipe

24/7 local AI screen & mic recording. Works with Ollama. Llama3.2 control your computer. Alternative to Rewind.ai & Zapier. Open. Secure. You own your data. Rust.
https://screenpi.pe
MIT License
8.13k stars 449 forks source link

Error: A backend-specific error has occurred: The user declined TCCs for application, window, display capture #79

Closed moltar closed 2 months ago

moltar commented 2 months ago

I am getting this error on the first run of the CLI tool on a macOS.

Error: A backend-specific error has occurred: The user declined TCCs for application, window, display capture

moltar commented 2 months ago

Probably related to macOS privacy preferences. But not clear how to grant a CLI access. Tried drag & dropping the binary into the list and it works. But nothing has changed from the error message. Maybe I need to add it to more categories, but not sure which ones, as the error isn't specific enough for each permission.

Also, there might be a corner case with brew, because brew links into /opt/homebrew/bin/screenpipe, meanwhile the actual binary lives elsewhere. Dragging & dropping /opt/homebrew/bin/screenpipe into the permission list seems to indicate that it adds a link, rather than the original. Not sure if that matters tho.

louis030195 commented 2 months ago

When you start the cli it should pop a permission dialog for recording

Otherwise search "recording" in settings and enable screenpipe

Sec will send some screenshots

louis030195 commented 2 months ago

https://github.com/louis030195/screen-pipe/blob/main/content/docs/NOTES.md

moltar commented 2 months ago

When you start the cli it should pop a permission dialog for recording

It doesn't. Not sure if it's my system or what, but it exits immediately with the error, and no typical macOS permission screens are displayed.

moltar commented 2 months ago

Added it to the list. The actual binary too, not the linked one. Yet still get the same error.

screenshot-20240731T141722-veQDXlKe@2x

louis030195 commented 2 months ago

i was in a call with a user like 1h ago and he had the popup and it was mentioning cursor because he started from cursor the cli

try to remove the permission with minus and try again, also if you have multiple monitors sometimes it's hiding somewhere

is it mac M or intel?

moltar commented 2 months ago

try to remove the permission

Tried that.

multiple monitors sometimes it's hiding somewhere

Not the case. I did check.

is it mac M or intel?

It's M1

louis030195 commented 2 months ago

what terminal do you use?

Screenshot 2024-07-31 at 20 50 27

i have this

but the screenpipe one is the desktop app

i think the CLI is my terminal Alacritty

louis030195 commented 2 months ago

https://github.com/user-attachments/assets/1d187b4d-364c-4e9d-a173-4a7e782dc914

moltar commented 2 months ago

Good call on the terminal! Indeed, when I grant iTerm2 access, everything works.

But that raises a question 🤔 I don't really want iTerm2 to have full access, as that means any CLI tool, or npm script, and everything else gets the same level of permissions.

louis030195 commented 2 months ago

@moltar yeah had same thought, you can get the desktop app alternatively 🙂