diff --git a/common/src/assets/mod.rs b/common/src/assets/mod.rs
index 58e20d903f..1aff030e79 100644
--- a/common/src/assets/mod.rs
+++ b/common/src/assets/mod.rs
@@ -296,7 +296,7 @@ lazy_static! {
         }
 
         // System paths
-        #[cfg(target_os = "linux")]
+        #[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
         {
             if let Ok(result) = std::env::var("XDG_DATA_HOME") {
                 paths.push(format!("{}/veloren/assets", result).into());