#!/usr/bin/python | |
import os | |
import sqlite3 | |
tccpath = '/Library/Application Support/com.apple.TCC/TCC.db' | |
connection = sqlite3.connect(tccpath) | |
c = connection.cursor() | |
values = ('kTCCServiceAccessibility', 'com.rescuetime.RescueTime', 0) | |
c.execute('INSERT or REPLACE into access values(?, ?, ?, 1, 1, NULL, NULL)', values) | |
connection.commit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment