Pārlūkot izejas kodu

Use better launch path for CLI

master
Matt Baer pirms 6 gadiem
vecāks
revīzija
7539da8e1f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      writeas/ViewController.swift

+ 1
- 1
writeas/ViewController.swift Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt