Skip to content

Commit

Permalink
Use dirs instead
Browse files Browse the repository at this point in the history
  • Loading branch information
noituri committed Nov 28, 2024
1 parent cd08cc3 commit b314413
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
39 changes: 39 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions compositor_chromium/chromium_sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ license = "BUSL-1.1"
anyhow = "1.0.72"
bindgen = "0.66.1"
cmake = "0.1.50"
dirs = "5.0.1"
fs_extra = "1.3.0"
reqwest = { workspace = true }
4 changes: 1 addition & 3 deletions compositor_chromium/chromium_sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ fn main() -> Result<()> {
println!("cargo:rerun-if-env-changed=CEF_ROOT");

let out_dir = PathBuf::from(env::var("OUT_DIR")?);
let cache_dir = PathBuf::from(env::var("HOME")?)
.join(".cache")
.join("live-compositor");
let cache_dir = dirs::cache_dir().unwrap().join("live-compositor");
let cef_root = env::var("CEF_ROOT")
.map(PathBuf::from)
.unwrap_or(cache_dir.join("cef_root"));
Expand Down

0 comments on commit b314413

Please sign in to comment.