You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(audio): default sound paths hardcode Windows backslashes and filenames on macOS/Linux #72
DEFAULT_CONFIG["alerts"] constructs default sound paths using MEDIA + r"\Windows Notify System Generic.wav", etc. On macOS (/System/Library/Sounds) and Linux (/usr/share/sounds), this yields broken mixed-separator paths pointing to non-existent Windows .wav files. Additionally, in app/sounds.py, Linux paplay ignores self.volume and fallback sys.stdout.write("\a") fails when sys.stdout is None in windowed frozen executables.
Initialize NewsAlerts on macOS or Linux with default configuration.
Inspect alerts.sound_new_symbol in config.json.
Observe invalid path /System/Library/Sounds\Windows Notify System Generic.wav (macOS) or /usr/share/sounds\Windows Ding.wav (Linux).
Expected Behavior
Default sound paths should use pathlib.Path with OS-appropriate native sound files (macOS .aiff / Linux discovered .ogg/.wav), Linux paplay should apply volume scaling, and fallback bell should guard if sys.stdout:.
Operating System & Version
OS: Windows 11 x64 / macOS arm64 / Linux x86_64
Version: v2.12.0
Display / Scale: Verified via live Chrome CDP (1600x960) & local unit/backend suite
Logs & Additional Context
Backend verification confirmed hardcoded MEDIA + r"\Windows Notify System Generic.wav" concatenation in app/config.py.
Summary of Changes: Replaced hardcoded Windows sound paths in app/config.py with OS-native _default_sound_path() using Path/PurePosixPath, added Linux paplay --volume scaling, and guarded sys.stdout fallback beep in app/sounds.py. Verified via unit tests.
Verification: compileall clean, 84/84 unit tests passing (including tests/test_audit_fixes.py), and live Chrome CDP verification passed.
This issue will automatically close upon PR #82 review and merge into main.
Activity
mlgitdev commentedon Dec 2, 2026
🚀 Resolution In Progress
A fix for this issue has been implemented and submitted in Pull Request #82 (
v2.12.1).fix/audit-remediation-67app/config.pywith OS-native_default_sound_path()usingPath/PurePosixPath, added Linuxpaplay --volumescaling, and guardedsys.stdoutfallback beep inapp/sounds.py. Verified via unit tests.compileallclean, 84/84 unit tests passing (includingtests/test_audit_fixes.py), and live Chrome CDP verification passed.This issue will automatically close upon PR #82 review and merge into
main.github-actions commentedon Dec 2, 2026
✅ Issue Validation Passed
fix(audio))This issue is well-structured and ready for work according to the Issue-First Protocol.