You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
localStorage is synced between multiple webview windows on Windows and macOS but not Linux.
On Linux, only 1 window's local storage gets saved when the tauri app exits. The rest of the windows' local storage is out of sync with each other and is disposed of when the tauri app exits.
In the example video below, the 2 windows on the left are running in Fedora 40, their counters are out of sync.
The 2 windows on the right are running in Windows 11, their counters are in sync.
(process:1737224): libsoup-WARNING **: 19:55:42.244: Failed to execute query: database is locked
(process:1737224): libsoup-WARNING **: 19:55:42.244: Failed to execute query: no such table: soup_hsts_policies
Failed to create hard link from /home/wenqi/.cache/tauri-app/WebKitCache/Version 16/Blobs/3DE2C89C97AF2523D1A566F90E64D1EB6FED08A2 to /home/wenqi/.cache/tauri-app/WebKitCache/Version 16/Records/2D857AF3C0D6CD0AE5639C83ED0E05BB5A00AEED/Resource/D36F616E0D261016A1484FD7FF748035207E4BBE-blob
The problem exists with both Tauri v1 and v2
The text was updated successfully, but these errors were encountered:
Describe the bug
localStorage
is synced between multiple webview windows on Windows and macOS but not Linux.On Linux, only 1 window's local storage gets saved when the tauri app exits. The rest of the windows' local storage is out of sync with each other and is disposed of when the tauri app exits.
In the example video below, the 2 windows on the left are running in Fedora 40, their counters are out of sync.
The 2 windows on the right are running in Windows 11, their counters are in sync.
Screencast.from.2024-09-12.19-29-11.mp4
Reproduction
The counter example shown in the video: https://github.com/Ynng/tauri-localstorage-sync-test
OR:
Reproduce from scratch:
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
nvm install node
corepack enable pnpm
pnpm create tauri-app --rc
with React, TypeScript and pnpmtauri.conf.json
to create 2 windows with different labelsExpected behavior
The localStorage entries should be in sync between the two windows.
In the reproduction repo, the counter should stay in sync between the two windows.
Full
tauri info
outputStack trace
No response
Additional context
I get warnings like these sometimes on linux
The problem exists with both Tauri v1 and v2
The text was updated successfully, but these errors were encountered: