mac系统设置相关字段:
Accessibility 面板相关
项目
URL Scheme
Main
x-apple.systempreferences:com.apple.preference.universalaccess
Display
x-apple.systempreferences:com.apple.preference.universalaccess?Seeing_Display
Zoom
x-apple.systempreferences:com.apple.preference.universalaccess?Seeing_Zoom
VoiceOver
x-apple.systempreferences:com.apple.preference.universalaccess?Seeing_VoiceOver
Descriptions
x-apple.systempreferences:com.apple.preference.universalaccess?Media_Descriptions
Captions
x-apple.systempreferences:com.apple.preference.universalaccess?Captioning
Audio
x-apple.systempreferences:com.apple.preference.universalaccess?Hearing
Keyboard
x-apple.systempreferences:com.apple.preference.universalaccess?Keyboard
Mouse & Trackpad
x-apple.systempreferences:com.apple.preference.universalaccess?Mouse
Switch Control
x-apple.systempreferences:com.apple.preference.universalaccess?Switch
Dictation
x-apple.systempreferences:com.apple.preference.universalaccess?SpeakableItems
分享
项目
URL Scheme
Main
x-apple.systempreferences:com.apple.preferences.sharing
Screen Sharing
x-apple.systempreferences:com.apple.preferences.sharing?Services_ScreenSharing
File Sharing
x-apple.systempreferences:com.apple.preferences.sharing?Services_PersonalFileSharing
Printer Sharing
x-apple.systempreferences:com.apple.preferences.sharing?Services_PrinterSharing
Remote Login
x-apple.systempreferences:com.apple.preferences.sharing?Services_RemoteLogin
Remote Management
x-apple.systempreferences:com.apple.preferences.sharing?Services_ARDService
Remote Apple Events
x-apple.systempreferences:com.apple.preferences.sharing?Services_RemoteAppleEvent
Internet Sharing
x-apple.systempreferences:com.apple.preferences.sharing?Internet
Bluetooth Sharing
x-apple.systempreferences:com.apple.preferences.sharing?Services_BluetoothSharing
安全&隐私相关
项目
URL Scheme
Main
x-apple.systempreferences:com.apple.preference.security
General
x-apple.systempreferences:com.apple.preference.security?General
FileVault
x-apple.systempreferences:com.apple.preference.security?FDE
Firewall
x-apple.systempreferences:com.apple.preference.security?Firewall
Advanced
x-apple.systempreferences:com.apple.preference.security?Advanced
Privacy
x-apple.systempreferences:com.apple.preference.security?Privacy
Privacy-Accessibility
x-apple.systempreferences:com.apple.preference.security?Privacy_Accessibility
Privacy-Assistive
x-apple.systempreferences:com.apple.preference.security?Privacy_Assistive
Privacy-Location Services
x-apple.systempreferences:com.apple.preference.security?Privacy_LocationServices
Privacy-Contacts
x-apple.systempreferences:com.apple.preference.security?Privacy_Contacts
Privacy-Diagnostics & Usage
x-apple.systempreferences:com.apple.preference.security?Privacy_Diagnostics
Privacy-Calendars
x-apple.systempreferences:com.apple.preference.security?Privacy_Calendars
Privacy-Reminders
x-apple.systempreferences:com.apple.preference.security?Privacy_Reminders
Privacy-Facebook
x-apple.systempreferences:com.apple.preference.security?Privacy_Facebook
Privacy-LinkedIn
x-apple.systempreferences:com.apple.preference.security?Privacy_LinkedIn
Privacy-Twitter
x-apple.systempreferences:com.apple.preference.security?Privacy_Twitter
Privacy-Weibo
x-apple.systempreferences:com.apple.preference.security?Privacy_Weibo
Privacy-Tencent Weibo
x-apple.systempreferences:com.apple.preference.security?Privacy_TencentWeibo
用Qt去调起时,代码如下:
void openSetting() { NSString *urlString = @"x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture"; [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]]; } void openSettingToGeneral() { NSString *urlString = @"x-apple.systempreferences:com.apple.preference.security?General"; [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:urlString]]; }第一个时定位到获取录屏权限
第二个是定位到通用设置