mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 06:38:52 +00:00
feat: add detected xr devices to troubleshooting info
This commit is contained in:
parent
2bd0b12e91
commit
b64364c6d1
1 changed files with 13 additions and 0 deletions
|
@ -3,6 +3,7 @@ use crate::{
|
||||||
get_developers, APP_ID, APP_NAME, BUILD_DATETIME, ISSUES_URL, REPO_URL, SINGLE_DEVELOPER,
|
get_developers, APP_ID, APP_NAME, BUILD_DATETIME, ISSUES_URL, REPO_URL, SINGLE_DEVELOPER,
|
||||||
VERSION,
|
VERSION,
|
||||||
},
|
},
|
||||||
|
device_prober::PhysicalXRDevice,
|
||||||
linux_distro::LinuxDistro,
|
linux_distro::LinuxDistro,
|
||||||
vulkaninfo::gpu_names,
|
vulkaninfo::gpu_names,
|
||||||
xdg::XDG,
|
xdg::XDG,
|
||||||
|
@ -55,6 +56,17 @@ pub fn populate_debug_info(dialog: &adw::AboutDialog) {
|
||||||
.map(|names| names.join(", "))
|
.map(|names| names.join(", "))
|
||||||
.unwrap_or("unknown".into())
|
.unwrap_or("unknown".into())
|
||||||
),
|
),
|
||||||
|
format!("Detected XR Devices: {}", {
|
||||||
|
let devs = PhysicalXRDevice::from_usb();
|
||||||
|
if devs.is_empty() {
|
||||||
|
"None".into()
|
||||||
|
} else {
|
||||||
|
devs.iter()
|
||||||
|
.map(PhysicalXRDevice::to_string)
|
||||||
|
.collect::<Vec<String>>()
|
||||||
|
.join(", ")
|
||||||
|
}
|
||||||
|
}),
|
||||||
format!(
|
format!(
|
||||||
"Steam found: {}",
|
"Steam found: {}",
|
||||||
if XDG.get_data_home().join("Steam").is_dir()
|
if XDG.get_data_home().join("Steam").is_dir()
|
||||||
|
@ -66,6 +78,7 @@ pub fn populate_debug_info(dialog: &adw::AboutDialog) {
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
|
.map(|s| format!("- {s}"))
|
||||||
.join("\n"),
|
.join("\n"),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue