From 74d779f6e7f9aa2a8307846d7f0878caf5b18ed8 Mon Sep 17 00:00:00 2001 From: haritabh-z01 Date: Sat, 13 Dec 2025 01:49:26 +0530 Subject: [PATCH] fix: windows microphone perms handling --- .../onboarding/components/UnifiedPermissionsStep.tsx | 10 ++++++---- .../components/screens/PermissionsScreen.tsx | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/apps/desktop/src/renderer/onboarding/components/UnifiedPermissionsStep.tsx b/apps/desktop/src/renderer/onboarding/components/UnifiedPermissionsStep.tsx index 48a378b..c399ffd 100644 --- a/apps/desktop/src/renderer/onboarding/components/UnifiedPermissionsStep.tsx +++ b/apps/desktop/src/renderer/onboarding/components/UnifiedPermissionsStep.tsx @@ -73,10 +73,12 @@ export function UnifiedPermissionsStep({ }; const handleOpenMicrophoneSettings = async () => { - // Open System Preferences > Security & Privacy > Privacy > Microphone - await openExternal.mutateAsync({ - url: "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone", - }); + // Open platform-specific microphone privacy settings + const url = + platform === "darwin" + ? "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone" + : "ms-settings:privacy-microphone"; + await openExternal.mutateAsync({ url }); }; const getMicrophoneStatus = () => { diff --git a/apps/desktop/src/renderer/onboarding/components/screens/PermissionsScreen.tsx b/apps/desktop/src/renderer/onboarding/components/screens/PermissionsScreen.tsx index 7bb1000..dddb071 100644 --- a/apps/desktop/src/renderer/onboarding/components/screens/PermissionsScreen.tsx +++ b/apps/desktop/src/renderer/onboarding/components/screens/PermissionsScreen.tsx @@ -80,10 +80,12 @@ export function PermissionsScreen({ }; const handleOpenMicrophoneSettings = async () => { - // Open System Preferences > Security & Privacy > Privacy > Microphone - await openExternal.mutateAsync({ - url: "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone", - }); + // Open platform-specific microphone privacy settings + const url = + platform === "darwin" + ? "x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone" + : "ms-settings:privacy-microphone"; + await openExternal.mutateAsync({ url }); }; const getMicrophoneStatus = () => {