macOS: set error when there is no directory to open with

This commit is contained in:
Lukas
2026-05-18 20:42:05 +02:00
parent fdf84ef7ce
commit 3ac7562791

View File

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