Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: open Settings before screen recording modal so modal appears on top

Louis Beaumont2ed74397c940
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 10156abe1..1abc04654 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.0.476"
+version = "2.0.477"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
index b2e0e98f7..8a9700a85 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/permissions.rs
@@ -51,11 +51,10 @@ pub async fn request_permission(permission: OSPermission) {
OSPermission::ScreenRecording => {
use core_graphics_helmer_fork::access::ScreenCaptureAccess;
if !ScreenCaptureAccess.preflight() {
- // CGRequestScreenCaptureAccess() handles both cases:
- // - NotDetermined: shows native modal prompt (macOS 15+)
- // - Denied: opens System Settings > Screen Recording
- // Do NOT also call open_permission_settings — it would open
- // Settings on top of the modal prompt, hiding it from the user.
+ // Open System Settings first so it's in the background,
+ // then request() shows the native modal on top (macOS 15+).
+ // If the user dismisses the modal, Settings is already open.
+ open_permission_settings(OSPermission::ScreenRecording);
ScreenCaptureAccess.request();
}
}