You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: repair linux mediautil tests and sync media tutorial paths
- Fix stale mediautil test type refs after mpris->mediacontrol rename
- Replace remaining internal/mpris tutorial paths with internal/mediacontrol
- Keep docs and tests aligned with current package/key naming
> **Key Pattern (Security):** The path is cleaned with `filepath.Clean()` and checked against allowed directory prefixes before reading. Linux allows `/tmp/`, `/var/tmp/`, and `~/.cache/`; Windows also allows `os.TempDir()`. This blocks directory traversal (`../../../etc/passwd`) while still allowing cover art cache files.
381
381
382
-
> **Concept (Go Build Tags):** OmniPanel-go uses build tags to compile platform-specific files. `internal/mpris/mpris.go` has `//go:build !windows` (Linux D-Bus), while `internal/mpris/watcher_windows.go` has `//go:build windows` (SMTC). Both expose the same `Watcher` API to the rest of the app.
382
+
> **Concept (Go Build Tags):** OmniPanel-go uses build tags to compile platform-specific files. `internal/mediacontrol/mpris.go` has `//go:build !windows` (Linux D-Bus), while `internal/mediacontrol/watcher_windows.go` has `//go:build windows` (SMTC). Both expose the same `Watcher` API to the rest of the app.
383
383
384
384
## Media Integration in Distributed Deployments (Serve + Connect Mode)
0 commit comments