macOS: only read file urls for new-terminal services

macOS is already guarding this system, but guarding what we actually need anyway
This commit is contained in:
Lukas
2026-07-03 12:46:48 +02:00
parent bb7cd85b2e
commit 10565995b9

View File

@@ -33,7 +33,7 @@ class ServiceProvider: NSObject {
) {
guard let delegate = NSApp.delegate as? AppDelegate else { return }
guard let pathURLs = pasteboard.readObjects(forClasses: [NSURL.self]) as? [URL] else {
guard let pathURLs = pasteboard.readObjects(forClasses: [NSURL.self], options: [.urlReadingFileURLsOnly: true]) as? [URL] else {
error.pointee = Self.errorNoString
return
}