mac – Script can entry SQLite database in ~/Library when run from Terminal, however not when run from launchd

mac – Script can entry SQLite database in ~/Library when run from Terminal, however not when run from launchd

I’ve a script that processes my display screen time information utilizing the SQLite database /Customers/USERNAME/Library/Software Help/Data/knowledgeC.db. The script runs wonderful after I launch it manually through Terminal, however I need to run it on a schedule through launchd. When it runs in launchd I get this error:

Traceback (most up-to-date name final):
  File "script.py", line 31, in <module>
    conn = sqlite3.join(db)
sqlite3.DatabaseError: authorization denied

How do I resolve this error?

Leave a Reply

Your email address will not be published. Required fields are marked *