open instance folder

This commit is contained in:
2026-07-25 18:50:15 -04:00
parent 30d6749d8c
commit 41afbc53dc
2 changed files with 21 additions and 0 deletions

View File

@@ -13,3 +13,7 @@ pub fn is_safe_relative_path(path: &str) -> bool {
&& p.components()
.all(|c| matches!(c, std::path::Component::Normal(_)))
}
pub fn open_path(path: &Path) -> anyhow::Result<()> {
std::process::Command::new("xdg-open").arg(path).spawn()?;
Ok(())
}