Notification issue
Linux, Ubuntu 22.04 - no sound of notifications. Notification audio device set the same as in Audio section, all switches set ON in Notifications section (see attached screenshots). Beta version (one of the last ones) worked well.
Can you hear ATC audio without any problems?
Yes, everything works perfectly, only no notifications sound.
czw., 31 paź 2024, 22:40 użytkownik Justin @.***> napisał:
Can you hear ATC audio without any problems?
— Reply to this email directly, view it on GitHub https://github.com/xpilot-project/xpilot/issues/222#issuecomment-2450859309, or unsubscribe https://github.com/notifications/unsubscribe-auth/BMSOXXN75VUPS6LVSS4IX6TZ6KPUZAVCNFSM6AAAAABQ7CLOHGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJQHA2TSMZQHE . You are receiving this because you authored the thread.Message ID: @.***>
I have tested a few last versions, and the last one that notification sound of private message is transmitted (triple beep) is xPilot-2.0.0-beta.53-Linux. It was tested inside of an airplane on the ground.
As a workaround (because I missed "contact me" messages) I use a little script that parses the log file and plays a sound when it senses a text message.
#! /bin/bash
# saner programming env: these switches turn some bugs into errors
set -o errexit -o pipefail -o noclobber -o nounset
dir="$HOME/.local/share/org.vatsim.xpilot"
play() {
## Pulseaudio
#paplay "$1"
## Pipewire
# find with `pw-top`
pwTarget="alsa_output.pci-0000_64_00.6.HiFi__hw_Generic_1__sink"
pw-play --target="$pwTarget" "$dir"/Sounds/NewMessage.wav
}
printf "Starting %s\n" "$0"
play "$dir"/Sounds/NewMessage.wav
while true; do
tail -n 0 -f "$dir"/NetworkLogs/* | grep -Eq '<<< #T[^:]*:[^@]'
play "$dir"/Sounds/NewMessage.wav
done