CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Add buttons to GUI to open relevant sections of the System Settings preferences panel [ENHANCEMENT]

Open KieranConlon opened this issue 2 years ago • 0 comments

Add button to open System Settings - Accessibility API

The installation intructions for granting permissions requires that the app needs Accessibility permissions to work properly. Suggestion to simplify access to the correct setting in System Settings by adding a button/control on the GUI to run a bash command to open System Settings on the correct panel.

On macOS Ventura (and I think Monterrey too) the command is:

open "x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility"

Add button to open System Settings - Xcode Source Editor Extension

The installation intructions for enabling the extension requires that the Copilot is added as an Xcode extension. Suggestion to simplify access to the correct setting in System Settings by adding a button/control on the GUI to run a bash command to open System Settings on the correct panel.

On macOS Ventura the command is:

open "x-apple.systempreferences:com.apple.ExtensionsPreferences"  

NOTE: I don't have a macOS Monterrey install, these steps should be checked & verified. On macOS Monterrey, access to the Extensions preference panel is not supported by URLScheme, may need to use AppleScript instead:

tell application "System Preferences"
	activate
	set the current pane to pane id "com.apple.preferences.extensions"
end tell

or using bash

osascript -e 'tell Application "System Preferences"' -e 'activate' -e 'set the current pane to pane id "com.apple.preferences.extensions"' -e 'end tell'

List of methods for opening System Settings obtained from bvanpeski - SystemPreferences

KieranConlon avatar Mar 15 '23 17:03 KieranConlon