Add rAudio detection and MPD playback support

This commit is contained in:
maze committed 2026-10-29 17:30:04 +01:00
1 parent 9986c2447b
commit b82ad75ec4
6 files changed
+96

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
package raudio
import (
"io/fs"
"os"
)
// Detect reports whether rAudio is installed locally.
func Detect() bool {
return detect(os.DirFS("/"))
}
func detect(root fs.FS) bool {
// rAudio stores its core environment variables in this configuration file.
info, err := fs.Stat(root, "srv/http/data/system/system.conf")
return err == nil && info.Mode().IsRegular()
}