69
100
sound := notification.Sound(fallback)
71
102
snd.log.Debugf("[%s] notification has no Sound: %#v", nid, sound)
74
105
absPath := snd.findSoundFile(app, nid, sound)
76
107
snd.log.Debugf("[%s] unable to find sound %s", nid, sound)
79
snd.log.Debugf("[%s] playing sound %s using %s", nid, absPath, snd.player)
89
snd.log.Debugf("[%s] error playing sound %s: %v", nid, absPath, err)
95
112
// Removes all cruft from path, ensures it's a "forward" path.
97
114
cleaned := filepath.Clean(path)
98
115
if strings.Contains(cleaned, "../") {
99
116
return "", errors.New("Path escaping xdg attempt")