Skip to content

Commit

Permalink
Update openSystemSettingsSecurity
Browse files Browse the repository at this point in the history
  • Loading branch information
tekezo committed Jul 21, 2024
1 parent 964f5f8 commit 3d68c2b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,13 @@ struct DriverNotActivatedAlertView: View {
}

private func openSystemSettingsSecurity() {
let url = URL(string: "x-apple.systempreferences:com.apple.preference.security?General")!
NSWorkspace.shared.open(url)
if #available(macOS 15.0, *) {
let url = URL(string: "x-apple.systempreferences:com.apple.LoginItems-Settings.extension")!
NSWorkspace.shared.open(url)
} else {
let url = URL(string: "x-apple.systempreferences:com.apple.preference.security?General")!
NSWorkspace.shared.open(url)
}

NSApp.miniaturizeAll(nil)
}
Expand Down

0 comments on commit 3d68c2b

Please sign in to comment.