Skip to content

Commit

Permalink
fix(linux): fix incorrect path for indexeddb database directory (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
lloydzhou authored Sep 26, 2024
1 parent e332eff commit 0fd1229
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changes/fixed-data_directory-error-for-webkitgtk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": patch
---

On Linux, fixed incorrect path for indexeddb database directory which made apps using `[email protected]` and `tauri@1` migrating to `wry@>=0.38` and `tauri@2` lose their indexeddb data.
7 changes: 1 addition & 6 deletions src/webkitgtk/web_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,7 @@ impl WebContextImpl {
let mut context_builder = WebContext::builder();
if let Some(data_directory) = data.data_directory() {
let data_manager = WebsiteDataManager::builder()
.base_data_directory(
data_directory
.join("databases")
.join("indexeddb")
.to_string_lossy(),
)
.base_data_directory(data_directory.to_string_lossy())
.build();
if let Some(cookie_manager) = data_manager.cookie_manager() {
cookie_manager.set_persistent_storage(
Expand Down

0 comments on commit 0fd1229

Please sign in to comment.