From 586a0de3585301dd0051a2308a44baa389b0441f Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Fri, 16 Jan 2026 22:25:20 -0600 Subject: [PATCH] Fix device selection changing system default instead of only QBZ PROBLEM: When selecting an audio device in QBZ settings, the app was changing the system-wide PipeWire default sink, affecting all applications. ROOT CAUSE: handleOutputDeviceChange() was calling set_pipewire_default_sink(), which changes the PipeWire default for the entire system. FIX: Removed set_pipewire_default_sink() call. The backend reinit_audio_device() already handles opening a specific device for QBZ without changing the system default. Now QBZ uses the selected device independently from the system default. --- src/lib/components/views/SettingsView.svelte | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index 0ef032565..5eca9471d 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -831,13 +831,9 @@ // Save the preference await invoke('set_audio_output_device', { device: deviceToStore }); - // If a specific device was selected, set it as the PipeWire default - if (sinkName) { - await invoke('set_pipewire_default_sink', { sinkName }); - } - // Reinitialize audio to use the selected device // IMPORTANT: Pass the actual sink name, not null + // This opens the specific device for QBZ without changing system default await invoke('reinit_audio_device', { device: deviceToStore }); console.log('Audio output device changed:', description, '(sink:', sinkName ?? 'default', ')');