Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 103 additions & 2 deletions app/src-tauri/Cargo.lock

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

3 changes: 3 additions & 0 deletions app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ tauri-plugin-opener = "2"
tauri-plugin-updater = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
directories = "5"
# Used by gmail/cdp_fetch for decoding binary IO.read chunks. Base64 is
# only emitted by CDP IO.read when the stream contains non-UTF-8 bytes,
# but we opt into the feature to stay robust against unexpected responses.
Expand Down Expand Up @@ -157,6 +159,7 @@ tauri-plugin-notification = { path = "vendor/tauri-plugin-notification" }

[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt"] }
tempfile = "3"

# Fast CI builds: trade runtime perf for compile speed
[profile.ci]
Expand Down
9 changes: 9 additions & 0 deletions app/src-tauri/src/cef_preflight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@ impl std::error::Error for CefLockError {}

/// Resolves the macOS default CEF cache directory and runs the preflight.
pub fn check_default_cache() -> Result<(), CefLockError> {
if let Some(configured) = std::env::var_os("OPENHUMAN_CEF_CACHE_PATH") {
let configured = PathBuf::from(configured);
log::debug!(
"[cef-preflight] using configured cache_path={}",
configured.display()
);
return check_cef_cache_lock(&configured);
}

let home = std::env::var_os("HOME").ok_or(CefLockError::NoHomeDir)?;
let cache_path = PathBuf::from(home)
.join("Library/Caches")
Expand Down
Loading
Loading