alfred-search-notes-app: Stopped working after MacOS 11.4 upgrade

To Reproduce

  1. I’m getting the error message described in “Required setup”: https://github.com/sballin/alfred-search-notes-app#required-setup
  2. Step 3 in the instructions doesn’t work, as the “Open Anyway” button doesn’t appear.

Info

  • macOS version: 11.4
  • Alfred version: 4.0
  • Workflow version: 3.3.0
  • In System Preferences > Security & Privacy > Privacy, there are checkmarks for Accessibility > Alfred 4, Full Disk Access > Alfred 4, Automation > Alfred 4 > Notes, and Automation > Alfred 4 > System Events? Yes
  • What is the output of the debug log when the error occurs?
panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
	github.com/sballin/alfred-search-notes-app/main.go:394
main.main()
	github.com/sballin/alfred-search-notes-app/main.go:407 +0x789
panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
	github.com/sballin/alfred-search-notes-app/main.go:394
main.main()
	github.com/sballin/alfred-search-notes-app/main.go:407 +0x789
panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
	github.com/sballin/alfred-search-notes-app/main.go:394
main.main()
	github.com/sballin/alfred-search-notes-app/main.go:407 +0x789
panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
	github.com/sballin/alfred-search-notes-app/main.go:394
main.main()
	github.com/sballin/alfred-search-notes-app/main.go:407 +0x789
panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
	github.com/sballin/alfred-search-notes-app/main.go:394
main.main()
	github.com/sballin/alfred-search-notes-app/main.go:407 +0x789
panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
	github.com/sballin/alfred-search-notes-app/main.go:394
main.main()
	github.com/sballin/alfred-search-notes-app/main.go:407 +0x789
panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
	github.com/sballin/alfred-search-notes-app/main.go:394
main.main()
	github.com/sballin/alfred-search-notes-app/main.go:407 +0x789
panic: unable to open database file: operation not permitted

goroutine 1 [running]:
main.PanicOnErr(...)
	github.com/sballin/alfred-search-notes-app/main.go:394
main.main()
	github.com/sballin/alfred-search-notes-app/main.go:407 +0x789

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

Well, I finally figured it out. Alfred didn’t have Full Disk Access checked in the Security & Privacy → Privacy pane. Once I check off Full Disk access it worked fine.

This solved it for me as well, thank you!

And thank you @gitrobert42 for an amazing plugin.

Well, I finally figured it out. Alfred didn’t have Full Disk Access checked in the Security & Privacy → Privacy pane. Once I check off Full Disk access it worked fine.