diff --git a/macos/Sources/Features/Services/ServiceProvider.swift b/macos/Sources/Features/Services/ServiceProvider.swift index 2ec4e473c..fd3e8e9cc 100644 --- a/macos/Sources/Features/Services/ServiceProvider.swift +++ b/macos/Sources/Features/Services/ServiceProvider.swift @@ -52,6 +52,11 @@ class ServiceProvider: NSObject { } ) + guard !directoryURLs.isEmpty else { + error.pointee = Self.errorNoString + return + } + for url in directoryURLs { var config = Ghostty.SurfaceConfiguration() config.workingDirectory = url.path(percentEncoded: false)