Desktop: Use the OS temp directory for CEF caches (#4030)

* Desktop: Use the OS temp dir

* Review
This commit is contained in:
Timon
2026-04-15 10:47:45 +00:00
committed by GitHub
parent 60f16d72a5
commit 2a2a60883d
8 changed files with 95 additions and 54 deletions
+6 -1
View File
@@ -54,7 +54,12 @@ impl CefContext for MultiThreadedCefContextProxy {
impl Drop for MultiThreadedCefContextProxy {
fn drop(&mut self) {
// Force dropping underlying context on the UI thread
run_on_ui_thread(move || drop(CONTEXT.take()));
let (sync_drop_tx, sync_drop_rx) = std::sync::mpsc::channel();
run_on_ui_thread(move || {
drop(CONTEXT.take());
let _ = sync_drop_tx.send(());
});
let _ = sync_drop_rx.recv();
}
}