Use data dir instead of home dir for dioxus-related data (#4445)

* Use data dir instead of home dir for dioxus-related data

* merge dx dir

* make windows match the pshell

---------

Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
Andrew VoynovandJonathan Kelley authored and GitHub committed 2025-08-05 12:05:19 -07:00
1 parent 58c41f8561
commit 89834bc1b3
6 files changed
+33 -8

No files matched your search

+1 -1
View File
@@ -400,7 +400,7 @@ impl WasmBindgen {
}
fn install_dir(&self) -> anyhow::Result<PathBuf> {
let bindgen_dir = Workspace::dioxus_home_dir().join("wasm-bindgen/");
let bindgen_dir = Workspace::dioxus_data_dir().join("wasm-bindgen/");
std::fs::create_dir_all(&bindgen_dir)?;
Ok(bindgen_dir)
}