feat(audio): init override metadata + Flatpak/Snap sandbox-aware host detection
InitSystem gains ALL/index/label so the wizard can offer a manual init override (for sandboxes and for generating commands for another machine). Sandbox awareness: detect_sandbox() (/.flatpak-info, $SNAP). Inside a sandbox /etc/os-release is the RUNTIME's (Flatpak freedesktop-sdk) or the snap base's, not the user's distro, and /run + /proc/1 reflect the sandbox — so detect_distro now reads the host-exposed os-release first (Flatpak /run/host/os-release, Snap /var/lib/snapd/hostfs/etc/os-release, then /etc), and detect_init returns Unknown in a sandbox (the host init is invisible; the wizard's override decides). cc
This commit is contained in:
2 files changed
+75
-5
No files matched your search
@@ -75,7 +75,8 @@ pub use coreaudio_direct::CoreAudioExclusiveGuard;
|
||||
pub use dac_capabilities::{query_dac_capabilities, DacCapabilities};
|
||||
pub use dac_probe::{negotiated_stream_rate, NegotiatedRate};
|
||||
pub use health::{
|
||||
audio_stack_health, detect_distro, detect_init, AudioStackHealth, Distro, InitSystem,
|
||||
audio_stack_health, detect_distro, detect_init, detect_sandbox, AudioStackHealth, Distro,
|
||||
InitSystem, Sandbox,
|
||||
};
|
||||
pub use device_reservation::{DeviceReservation, ReservationError};
|
||||
pub use diagnostic::{AudioDiagnostic, BitDepthResult, DiagnosticSource};
|
||||
|
||||
Reference in new issue
Block a user