Misc bugs 4 (#381)

* bug fixes

* fixed jres being undetected

* cleanup

* prettier

* fixed folders not displaying windows exporting

* fixes, more bugs

* missed function

* clippy, fmt

* prettier
This commit is contained in:
Wyatt Verchere
2023-07-28 19:56:49 -07:00
committed by GitHub
parent 744d11f09e
commit 87449f91c3
22 changed files with 171 additions and 78 deletions

View File

@@ -59,7 +59,7 @@ pub fn show_in_folder(path: String) -> Result<()> {
#[cfg(target_os = "windows")]
{
Command::new("explorer")
.args(["/select,", &path]) // The comma after select is not a typo
.args([&path]) // The comma after select is not a typo
.spawn()?;
}
@@ -86,7 +86,7 @@ pub fn show_in_folder(path: String) -> Result<()> {
#[cfg(target_os = "macos")]
{
Command::new("open").args(["-R", &path]).spawn()?;
Command::new("open").args([&path]).spawn()?;
}
Ok::<(), theseus::Error>(())