Эх сурвалжийг харах

feat(core): persist non-session cookies on Linux (#3052)

Lucas Fernandes Nogueira 3 жил өмнө
parent
commit
d7c02a30a5

+ 6 - 0
.changes/enable-linux-cookie-persistence.md

@@ -0,0 +1,6 @@
+---
+"tauri": "patch"
+"tauri-runtime-wry": patch
+---
+
+Enable non-session cookie persistence on Linux.

+ 1 - 1
core/tauri-runtime-wry/Cargo.toml

@@ -14,7 +14,7 @@ readme = "README.md"
 
 [dependencies]
 #wry = { version = "0.12", default-features = false, features = [ "file-drop", "protocol" ] }
-wry = { git = "https://github.com/tauri-apps/wry", rev = "27cf3735f717ffcc409e79031356ea0c99cadf8a", default-features = false, features = [ "file-drop", "protocol", "transparent", "fullscreen" ] }
+wry = { git = "https://github.com/tauri-apps/wry", rev = "11557f15cf759fcf3008598b684c009f03a8c645", default-features = false, features = [ "file-drop", "protocol", "transparent", "fullscreen" ] }
 tauri-runtime = { version = "0.2.1", path = "../tauri-runtime" }
 tauri-utils = { version = "1.0.0-beta.3", path = "../tauri-utils" }
 uuid = { version = "0.8.2", features = [ "v4" ] }

+ 2 - 2
core/tauri/src/manager.rs

@@ -24,7 +24,7 @@ use crate::{
   Context, Invoke, StateManager, Window,
 };
 
-#[cfg(target_os = "windows")]
+#[cfg(any(target_os = "linux", target_os = "windows"))]
 use crate::api::path::{resolve_path, BaseDirectory};
 
 use crate::app::{GlobalMenuEventListener, WindowMenuEvent};
@@ -665,7 +665,7 @@ impl<R: Runtime> WindowManager<R> {
 
     // in `Windows`, we need to force a data_directory
     // but we do respect user-specification
-    #[cfg(target_os = "windows")]
+    #[cfg(any(target_os = "linux", target_os = "windows"))]
     if pending.webview_attributes.data_directory.is_none() {
       let local_app_data = resolve_path(
         &self.inner.config,