osx - How to call 'killall' terminal commands in Swift from a Today Extension on Mac -
i'm writing today extension needs call 'killall finder' sometimes. i've written app , taskbar extension use without problem. however, when use today extension error message -term 3205: operation not permitted
part of code i'm using inside function:
let task = nstask() task.launchpath = launchpath task.arguments = array(arguments) task.launch() task.waituntilexit() but calls echo 'hey there' , say 'hi' work i'm guessing has root access.
the code nstask function in shared .swift file in main application.
can add sandbox rules enable behavior, change nstask code used, maybe use kind of xpc service or else make work?
Comments
Post a Comment