mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-12 07:20:45 +00:00
13 lines
290 B
Swift
13 lines
290 B
Swift
import AppKit
|
|
import Foundation
|
|
|
|
enum SystemSettingsURLSupport {
|
|
static func openFirst(_ candidates: [String]) {
|
|
for candidate in candidates {
|
|
if let url = URL(string: candidate), NSWorkspace.shared.open(url) {
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|