Run sound command in goroutine so notification shows up at the same time
This commit is contained in:
parent
531a58ce4a
commit
05790c156d
@ -76,7 +76,9 @@ func Send(title, text string, critical, sound bool) error {
|
||||
if critical && len(soundCritical) > 0 {
|
||||
audioFile = soundCritical
|
||||
}
|
||||
go func() {
|
||||
_ = exec.Command(audioCommand, audioFile).Run()
|
||||
}()
|
||||
}
|
||||
return exec.Command(notifySendPath, args...).Run()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user