To restart the system apps like Finder or Dock, shouldn't we be sending kill signal instead of term?
killall Finder sends SIGTERM where as killall -KILL Finder sends SIGKILL.
So I think, the relevant code should be:
killTask.launchPath = "/usr/bin/killall"
killTask.arguments = ["-KILL", "Finder"]
killTask.launch()
if you think this is correct, I will send a PR 😃
some links on the same: 1, 2
To restart the system apps like Finder or Dock, shouldn't we be sending kill signal instead of term?
killall Findersends SIGTERM where askillall -KILL Findersends SIGKILL.So I think, the relevant code should be:
if you think this is correct, I will send a PR 😃
some links on the same: 1, 2