From 7539da8e1f6d0a7b63297ae5bfb016c3cf45441d Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Mon, 31 Jul 2017 19:12:40 -0400 Subject: [PATCH] Use better launch path for CLI --- writeas/ViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/writeas/ViewController.swift b/writeas/ViewController.swift index fef0eee..95d8d07 100644 --- a/writeas/ViewController.swift +++ b/writeas/ViewController.swift @@ -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