mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-10 11:19:45 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user