Skip to content

Commit d7c02a3

Browse files
authored
feat(core): persist non-session cookies on Linux (#3052)
1 parent 156cdbc commit d7c02a3

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri": "patch"
3+
"tauri-runtime-wry": patch
4+
---
5+
6+
Enable non-session cookie persistence on Linux.

core/tauri-runtime-wry/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ readme = "README.md"
1414

1515
[dependencies]
1616
#wry = { version = "0.12", default-features = false, features = [ "file-drop", "protocol" ] }
17-
wry = { git = "https://github.com/tauri-apps/wry", rev = "27cf3735f717ffcc409e79031356ea0c99cadf8a", default-features = false, features = [ "file-drop", "protocol", "transparent", "fullscreen" ] }
17+
wry = { git = "https://github.com/tauri-apps/wry", rev = "11557f15cf759fcf3008598b684c009f03a8c645", default-features = false, features = [ "file-drop", "protocol", "transparent", "fullscreen" ] }
1818
tauri-runtime = { version = "0.2.1", path = "../tauri-runtime" }
1919
tauri-utils = { version = "1.0.0-beta.3", path = "../tauri-utils" }
2020
uuid = { version = "0.8.2", features = [ "v4" ] }

core/tauri/src/manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use crate::{
2424
Context, Invoke, StateManager, Window,
2525
};
2626

27-
#[cfg(target_os = "windows")]
27+
#[cfg(any(target_os = "linux", target_os = "windows"))]
2828
use crate::api::path::{resolve_path, BaseDirectory};
2929

3030
use crate::app::{GlobalMenuEventListener, WindowMenuEvent};
@@ -665,7 +665,7 @@ impl<R: Runtime> WindowManager<R> {
665665

666666
// in `Windows`, we need to force a data_directory
667667
// but we do respect user-specification
668-
#[cfg(target_os = "windows")]
668+
#[cfg(any(target_os = "linux", target_os = "windows"))]
669669
if pending.webview_attributes.data_directory.is_none() {
670670
let local_app_data = resolve_path(
671671
&self.inner.config,

0 commit comments

Comments
 (0)