From fe98c17b1d52535450a3b3de8602f2b03a5eeef5 Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 22 May 2026 18:39:27 +0200 Subject: [PATCH] fix(desktop): declare surfsense:// scheme in macOS Info.plist Linux registered the scheme via desktop-file MIME, but mac.extendInfo never declared CFBundleURLTypes, leaving install-time LaunchServices unaware of the protocol. The runtime app.setAsDefaultProtocolClient call still runs as a fallback. --- surfsense_desktop/electron-builder.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/surfsense_desktop/electron-builder.yml b/surfsense_desktop/electron-builder.yml index e4e7670ec..90568a637 100644 --- a/surfsense_desktop/electron-builder.yml +++ b/surfsense_desktop/electron-builder.yml @@ -55,6 +55,11 @@ mac: NSAccessibilityUsageDescription: "SurfSense uses accessibility features to bring the app to the foreground and interact with the active application when you use desktop assists." NSScreenCaptureUsageDescription: "SurfSense uses screen capture so you can attach a selected region to chat (Screenshot Assist) or capture the full screen from the composer." NSAppleEventsUsageDescription: "SurfSense uses Apple Events to interact with the active application." + # `surfsense://` scheme — install-time registration for LaunchServices. + CFBundleURLTypes: + - CFBundleURLName: com.surfsense.desktop + CFBundleURLSchemes: + - surfsense target: - target: dmg arch: [x64, arm64]