Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

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

Eric Mason5406950b02c1
diff --git a/flutter/lib/desktop/pages/desktop_home_page.dart b/flutter/lib/desktop/pages/desktop_home_page.dart
index 6d370cbb0..1c7ae3d9b 100644
--- a/flutter/lib/desktop/pages/desktop_home_page.dart
+++ b/flutter/lib/desktop/pages/desktop_home_page.dart
@@ -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)) {