From 038e70bb852282bb2283aa694eef22e1c8c2386e Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Mon, 19 Jan 2026 17:21:21 -0600 Subject: [PATCH] Add Flatpak bit-perfect limitation warning for PipeWire Display warning banner in Settings when user enables DAC Passthrough with PipeWire backend in Flatpak environment. The warning informs users that: - PipeWire cannot guarantee bit-perfect in Flatpak sandbox - ALSA Direct backend is recommended for true bit-perfect audio This addresses the fundamental limitation where Flatpak portal does not allow control of PipeWire daemon sample rate configuration, even with elevated permissions. --- src/lib/components/views/SettingsView.svelte | 40 ++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index 13688009e..6fcd8949d 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -1514,6 +1514,16 @@ + {#if isFlatpak && selectedBackend === 'PipeWire' && dacPassthrough} +
+
⚠️
+
+ Flatpak Limitation: PipeWire cannot guarantee bit-perfect playback in sandboxed environments due to daemon access restrictions. +
+ Recommended: Switch to ALSA Direct backend for true bit-perfect audio. +
+
+ {/if}
{$t('settings.audio.currentSampleRate')} @@ -2581,6 +2591,36 @@ flatpak override --user --filesystem=$HOME/music-nas com.blitzfc.qbz color: var(--text-secondary); font-weight: 600; } + + /* Flatpak warning banner */ + .flatpak-warning { + display: flex; + gap: 12px; + background-color: rgba(251, 191, 36, 0.1); + border: 1px solid rgba(251, 191, 36, 0.3); + border-radius: 8px; + padding: 16px; + margin: 16px 0; + align-items: flex-start; + } + + .warning-icon { + font-size: 20px; + flex-shrink: 0; + line-height: 1; + } + + .warning-content { + flex: 1; + font-size: 13px; + line-height: 1.6; + color: var(--text-primary); + } + + .warning-content strong { + color: rgb(251, 191, 36); + font-weight: 600; + }