Skip to content

fix(audio): avoid false negative when some event sounds can't be found - #3437

Merged
bbedward merged 1 commit into
duxlabs-dev:masterfrom
2gibbert:pr
Sep 14, 2026
Merged

bbedward merged 1 commit into
duxlabs-dev:masterfrom
2gibbert:pr

Conversation

@2gibbert

@2gibbert 2gibbert commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Description

Desktop sounds still fallback to freedesktop when using a sound theme.

 DEBUG qml: [AudioService:814] Current system sound theme: gibbert
 DEBUG qml: [AudioService:937] Using bundled sound for audio-volume-change : "file:///nix/store/553whd7dkzmw0i8877xrc0b57q4w828d-dms-shell-1.7-beta+date=2026-09-12_6b50696/share/quickshell/dms/assets/sounds/freedesktop/audio-volume-change.wav"
 DEBUG qml: [AudioService:937] Using bundled sound for power-plug : "file:///nix/store/553whd7dkzmw0i8877xrc0b57q4w828d-dms-shell-1.7-beta+date=2026-09-12_6b50696/share/quickshell/dms/assets/sounds/plasma/power-plug.wav"
 DEBUG qml: [AudioService:937] Using bundled sound for power-unplug : "file:///nix/store/553whd7dkzmw0i8877xrc0b57q4w828d-dms-shell-1.7-beta+date=2026-09-12_6b50696/share/quickshell/dms/assets/sounds/plasma/power-unplug.wav"
 DEBUG qml: [AudioService:937] Using bundled sound for message : "file:///nix/store/553whd7dkzmw0i8877xrc0b57q4w828d-dms-shell-1.7-beta+date=2026-09-12_6b50696/share/quickshell/dms/assets/sounds/freedesktop/message.wav"
 DEBUG qml: [AudioService:937] Using bundled sound for message-new-instant : "file:///nix/store/553whd7dkzmw0i8877xrc0b57q4w828d-dms-shell-1.7-beta+date=2026-09-12_6b50696/share/quickshell/dms/assets/sounds/freedesktop/message-new-instant.wav"
 DEBUG qml: [AudioService:937] Using bundled sound for desktop-login : "file:///nix/store/553whd7dkzmw0i8877xrc0b57q4w828d-dms-shell-1.7-beta+date=2026-09-12_6b50696/share/quickshell/dms/assets/sounds/freedesktop/desktop-login.wav"

I believe this is caused by the script in discoverSoundFiles, where if the last event name isn't found (desktop-login), the exit code will be 1 (from [ $found -eq 1 ] && break), even if other sounds were found, this would be mistaken as the whole operation failed.

I made it always return 0 after searching, just except for when something fails mid way through the script.

 DEBUG qml: [AudioService:814] Current system sound theme: gibbert
 DEBUG qml: [AudioService:933] Using system sound for audio-volume-change : file:///run/current-system/sw/share/sounds/gibbert/stereo/audio-volume-change.wav
 DEBUG qml: [AudioService:933] Using system sound for power-plug : file:///run/current-system/sw/share/sounds/gibbert/stereo/power-plug.wav
 DEBUG qml: [AudioService:933] Using system sound for power-unplug : file:///run/current-system/sw/share/sounds/gibbert/stereo/power-unplug.wav
 DEBUG qml: [AudioService:933] Using system sound for message : file:///run/current-system/sw/share/sounds/gibbert/stereo/dialog-information.wav
 DEBUG qml: [AudioService:933] Using system sound for message-new-instant : file:///run/current-system/sw/share/sounds/gibbert/stereo/dialog-warning.wav
 DEBUG qml: [AudioService:938] Using bundled sound for desktop-login : "file:///mnt/store/documents/src/CLONE/linux/DankMaterialShell/quickshell/assets/sounds/freedesktop/desktop-login.wav"

Thank you @LuckShiba for figuring this out !!

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Fixes #2211.

Screenshots / video

Checklist

@bbedward
bbedward merged commit 6af2b1f into duxlabs-dev:master Sep 14, 2026
2 checks passed
@2gibbert
2gibbert deleted the pr branch September 14, 2026 17:20
bbedward pushed a commit that referenced this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System sound theme broken

2 participants