sballin / alfred-search-notes-app

Use Alfred to quickly open notes in iCloud/Apple Notes.
https://www.alfredforum.com/topic/11716-search-appleicloud-notes/
MIT License
502 stars 23 forks source link

search_notes error – panic: unable to open database file: operation not permitted #53

Closed donovan-murphy closed 2 years ago

donovan-murphy commented 2 years ago

To Reproduce

Steps/context to reproduce the behavior:

  1. In macOS Monterey, open Alfred
  2. Type the letter n (in this particular case, I was trying to open Notion)

For now, I have disabled the workflow until the issue is solved

Error text

panic: unable to open database file: operation not permitted

goroutine 1 [running]: main.PanicOnErr(...) github.com/sballin/alfred-search-notes-app/main.go:461 main.main() github.com/sballin/alfred-search-notes-app/main.go:474 +0x7f3

macOS: 12.0.1 Alfred: 4.6 Workflow: 3.5.2 CPU: x86_64h Binary xattrs: com.apple.lastuseddate#PS Notes DB xattrs: Binary info: 0755 501/donovan 20/staff Notes DB info: 0644 501/donovan 20/staff Query: title '' Accounts: iCloud

sballin commented 2 years ago

Here is a related issue: https://github.com/sballin/alfred-search-notes-app/issues/39#issuecomment-855355859

You might try going through the required permissions and re-enabling them

donovan-murphy commented 2 years ago

Here is a related issue: #39 (comment)

You might try going through the required permissions and re-enabling them

Thanks. It looks like Full Disk Access permission was lost during the update to Monterey. It's working fine now.