Use better launch path for CLI

This commit is contained in:
Matt Baer 2017-07-31 19:12:40 -04:00
parent 9d0be74ae4
commit 7539da8e1f

View File

@ -98,7 +98,7 @@ class ViewController: NSViewController, NSTextViewDelegate, NSUserNotificationCe
DispatchQueue.global(qos: .background).async {
let task = Process()
task.launchPath = Bundle.main.executablePath! + "/../../Resources/writeas"
task.launchPath = Bundle.main.resourcePath! + "/writeas"
task.arguments = ["--font", Preferences.getFont().rawValue]
let pipe = Pipe()
task.standardInput = pipe