Merge branch 'jbeich/veloren-freebsd' into 'master'

Enable system assets on more Unices

See merge request veloren/veloren!1005
This commit is contained in:
Forest Anderson 2020-05-19 00:20:07 +00:00
commit db302b8525

View File

@ -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());