Skip to content

Commit 37efbce

Browse files
committed
Add buttons to open settings
1 parent 98a5742 commit 37efbce

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Core/Sources/HostApp/GeneralView.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,24 @@ struct ExtensionServiceView: View {
105105
}) {
106106
Text("Reveal Extension Service in Finder")
107107
}
108+
109+
Button(action: {
110+
let url = URL(
111+
string: "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"
112+
)!
113+
NSWorkspace.shared.open(url)
114+
}) {
115+
Text("Accessibility Settings")
116+
}
117+
118+
Button(action: {
119+
let url = URL(
120+
string: "x-apple.systempreferences:com.apple.ExtensionsPreferences"
121+
)!
122+
NSWorkspace.shared.open(url)
123+
}) {
124+
Text("Extensions Settings")
125+
}
108126
}
109127
}
110128
.padding()

0 commit comments

Comments
 (0)