fix(macos): open Screen Recording settings from Configure (#16452)

CGRequestScreenCaptureAccess shows its prompt only once per app. After
the user denies it, or after an update changes the code signature,
pressing Configure on the Screen Recording banner did nothing. Open the
Screen & System Audio Recording pane as well, so the button always
leads somewhere the user can grant access.

Co-authored-by: Eric Mason <17150+ericmason@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Eric Mason
2026-10-05 20:15:32 +08:00
committed by GitHub
co-authored by Eric Mason Claude Opus 5.5
parent 685fa2e4a1
commit 5406950b02
@@ -480,6 +480,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
return buildInstallCard("Permissions", "config_screen", "Configure",
() async {
bind.mainIsCanScreenRecording(prompt: true);
// macOS shows the request prompt only once per app, so later
// presses would do nothing without opening the settings pane.
launchUrl(Uri.parse(
'x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture'));
watchIsCanScreenRecording = true;
}, help: 'Help', link: translate("doc_mac_permission"));
} else if (!isOutgoingOnly && !bind.mainIsProcessTrusted(prompt: false)) {