File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ enum Constants {
55
55
enum Panels {
56
56
static let storage = " x-apple.systempreferences:com.apple.settings.Storage "
57
57
static let softwareUpdates = " x-apple.systempreferences:com.apple.preferences.softwareupdate "
58
+ static let users = " x-apple.systempreferences:com.apple.preferences.users "
58
59
}
59
60
60
61
enum ToolTips {
Original file line number Diff line number Diff line change @@ -276,6 +276,19 @@ struct ActionHelpers {
276
276
await openURL ( preferences. changePasswordUrl, completion: completion)
277
277
} else if preferences. changePasswordMode == " SSOExtension " {
278
278
await handleSSOExtension ( completion: completion)
279
+ } else {
280
+ await openUserPanel ( )
281
+ }
282
+ }
283
+
284
+ static func openUserPanel( ) {
285
+ Task {
286
+ do {
287
+ Logger . shared. logDebug ( " Opening Users & Groups " )
288
+ try await _ = ExecutionService . executeCommand ( " open " , with: [ Constants . Panels. users] )
289
+ } catch {
290
+ Logger . shared. logError ( " Failed to open Users & Groups: \( error) " )
291
+ }
279
292
}
280
293
}
281
294
You can’t perform that action at this time.
0 commit comments