gpui-component/crates/wef/tool/src/internal/find_cef_root.rs
Sunli b70b229370
wef: Added a new WebView component named "Wef" based on CEF. (#877)
Wef is a Rust library for embedding WebView functionality using Chromium
Embedded Framework (CEF3) with offscreen rendering support.
2025-06-17 18:57:44 +08:00

9 lines
234 B
Rust

use std::path::PathBuf;
pub(crate) fn find_cef_root() -> PathBuf {
if let Ok(cef_root) = std::env::var("CEF_ROOT") {
cef_root.into()
} else {
dirs::home_dir().expect("get home directory").join(".cef")
}
}