Files
qbz/src-tauri/tauri.conf.json
T
vicrodh 037b8569d6 Add fallback to CPAL enumeration if aplay -L fails
ALSA Backend Fallback:
- enumerate_via_aplay() - Preferred method with real hardware descriptions
- enumerate_via_cpal() - Fallback without descriptions (frontend will translate)
- enumerate_alsa_devices() tries aplay first, falls back to CPAL on failure
- Warning log suggests installing alsa-utils if aplay fails

Edge Case Handled:
- System has ALSA installed but not alsa-utils package
- CPAL detects ALSA host → AlsaBackend available
- aplay -L command fails → fallback to CPAL enumeration
- User sees translated names instead of real hardware descriptions
- App still works, just with less friendly device names

Package Dependencies:
- Added alsa-utils as "Recommends" for .deb packages (Debian/Ubuntu)
- Added alsa-utils as "Recommends" for .rpm packages (Fedora/RHEL)
- "Recommends" = installs by default but not required (apt/dnf behavior)
- If user explicitly removes alsa-utils, app falls back gracefully

In practice alsa-utils is almost always installed with ALSA, but this
ensures we handle the edge case properly.
2026-01-17 20:00:13 -06:00

68 lines
1.6 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "QBZ",
"version": "1.1.5",
"identifier": "com.blitzkriegfc.qbz",
"build": {
"beforeDevCommand": "npm run dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "npm run build",
"frontendDist": "../build"
},
"app": {
"windows": [
{
"title": "QBZ",
"width": 1280,
"height": 800,
"minWidth": 800,
"minHeight": 600,
"decorations": false,
"transparent": true,
"resizable": true,
"zoomHotkeysEnabled": true
}
],
"security": {
"csp": null,
"assetProtocol": {
"enable": true,
"scope": [
"$CACHE/qbz/**",
"$CONFIG/qbz/**",
"$HOME/.cache/qbz/**",
"$HOME/.config/qbz/**",
"$HOME/**",
"/mnt/**",
"/media/**",
"/run/media/**"
]
}
}
},
"bundle": {
"active": true,
"targets": "all",
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"category": "Music",
"shortDescription": "Native Qobuz client for Linux",
"longDescription": "QBZ is a native Qobuz streaming client for Linux, designed for audiophiles who need bit-perfect playback without browser sample rate limitations.",
"linux": {
"deb": {
"depends": [],
"recommends": ["alsa-utils"]
},
"rpm": {
"depends": [],
"recommends": ["alsa-utils"]
}
}
}
}