From 5ce423ca1088d4edd5fc872baa228da0c8fe7488 Mon Sep 17 00:00:00 2001 From: MrPandir Date: Mon, 7 Sep 2026 22:38:57 +0200 Subject: [PATCH] fix(version-detect): fall back to defaults when mdls returns '(null)' on macOS --- rust/crates/spicetify/src/hooks/version_detect.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/crates/spicetify/src/hooks/version_detect.rs b/rust/crates/spicetify/src/hooks/version_detect.rs index 7cfaf7272b..7bd00cb28f 100644 --- a/rust/crates/spicetify/src/hooks/version_detect.rs +++ b/rust/crates/spicetify/src/hooks/version_detect.rs @@ -49,7 +49,8 @@ fn detect_version(exec_path: &Path) -> Result { .map_err(|e| anyhow::anyhow!("failed to run mdls: {e}"))?; if output.status.success() { let version = String::from_utf8_lossy(&output.stdout).trim().to_string(); - if !version.is_empty() { + // Treat "(null)" from mdls as no result and use the defaults fallback + if !version.is_empty() && !version.eq_ignore_ascii_case("(null)") { return Ok(version); } }