Say you’re building a desktop mail client with Tauri and want a personal and a work account open side by side in separate windows. On Windows, that used to mean separate data directories, and every data directory spins up its own WebView2 browser process. Tauri 2.13, stable since Saturday, November 28, fixes this with a new profileIdentifier option. The release also adds a config switch for window.open, media playback from the asset protocol on Linux, and an Arch Linux package as a new bundle target.
We went through the release notes, config.rs and the JavaScript API at the tauri-v2.13.0 tag. A few of the new features have security implications that the changelog mentions only in passing.
What’s new in Tauri 2.13
Tauri 2.13 is a minor release of the Rust framework for building desktop and mobile apps with a web frontend. The CLI 2.13.0 and the @tauri-apps/api 2.13.0 npm package shipped alongside it. The one thing to check before upgrading: the minimum supported Rust version (MSRV) moves from 1.90 to 1.92. On Linux, Tauri now depends on newer GTK bindings, gtk 0.19 and webkit2gtk 3, plus wry 0.58 and tao 0.38.
Feature-wise, the release covers three areas: isolated browsing data per webview, controlled new windows, and a long list of tray icon and menu improvements. Android and iOS get some changes too, which we cover further down. For tooling authors, the new tauri::command_metadata! macro exposes a command’s metadata: its name, docs, deprecation note and argument names. And resolveExternalBin resolves the path to a sidecar binary configured under bundle > externalBin.
Isolated profiles per webview with profileIdentifier
The new option takes 16 bytes, which in practice means a UUID. Webviews with the same identifier share cookies, local storage, IndexedDB and cache. Webviews with different identifiers can’t see each other’s data at all. On macOS 14+ and iOS 17+, Tauri creates a dedicated WKWebsiteDataStore. On Windows, it becomes a WebView2 named profile inside the shared data directory, named after the identifier in lowercase hex, and it requires WebView2 Runtime 101 or later. The win on Windows is that all profiles run in a single browser process instead of one extra process per account.
In Rust, it’s one call on the builder:
use tauri::{WebviewUrl, WebviewWindowBuilder};
let id = uuid::Uuid::new_v4();
// Persist the UUID yourself, or the app won't find the profile again on next launch
WebviewWindowBuilder::new(app, format!("account-{id}"), WebviewUrl::App("inbox".into()))
.title("Second account")
.profile_identifier(*id.as_bytes())
.build()?;
From the frontend it works the same way, with the identifier passed as an array of 16 numbers. Creating windows from JavaScript requires the core:webview:allow-create-webview-window permission in your capability:
import { WebviewWindow } from '@tauri-apps/api/webviewWindow'
const uuidToBytes = (uuid: string) =>
uuid.replace(/-/g, '').match(/../g)!.map((hex) => parseInt(hex, 16))
const id = crypto.randomUUID()
new WebviewWindow(`account-${id}`, {
url: '/inbox',
title: 'Second account',
profileIdentifier: uuidToBytes(id),
})
For cleanup, @tauri-apps/api/app now has fetchProfileIdentifiers() and removeProfile(). Neither is part of core:app:default, so you have to grant core:app:allow-fetch-profile-identifiers and core:app:allow-remove-profile explicitly. On Windows, removal can fail right after you close the last window using a profile, because WebView2 releases the profile files a moment later. The docs say to just retry later. The profile stays untouched if that happens.
One caveat before you pitch account separation as a security feature: profileIdentifier isn’t supported on Linux or Android. All webviews there still share their data, and removeProfile() does nothing. If you need truly separate sessions on Linux, you’re still on your own with separate data directories.
The old macOS-only dataStoreIdentifier option, along with fetchDataStoreIdentifiers and removeDataStore, is now deprecated. It keeps working but is not applied on Windows, so apps that already set it stay on the default WebView2 profile there. If you want isolation on Windows too, switch to profileIdentifier.
Controlling window.open from the config
Until now, deciding what happens when an embedded page calls window.open meant writing an on_new_window handler in Rust. In 2.13 you can do it in the window configuration in tauri.conf.json. There are three actions. deny is the default and blocks new windows, which matches what the runtime already did. allowDefault lets the webview open the window itself. allowTauriWindow creates a real Tauri window instead. Use urls to restrict which addresses are allowed:
{
"app": {
"windows": [
{
"label": "main",
"onNewWindow": {
"action": "allowTauriWindow",
"urls": ["https://accounts.example.com/**"]
}
}
]
}
}
Patterns are globs: * doesn’t cross a slash, ** matches any number of path segments. With the new url-pattern Cargo feature you get the full URLPattern spec instead. Android and iOS don’t support the option and always deny new windows.
Two notes from the source code matter more than the config itself. With allowDefault, Tauri only checks the list against the first requested URL. After that the webview owns the window, and the opener or a redirect can send it to any URL. With allowTauriWindow, Tauri also attaches a navigation check against the list. Those new windows get labels like main-created-0, main-created-1 and so on, and that’s where the trap is. Capabilities match window labels with globs. If a capability says "windows": ["main*"], or worse ["*"], those windows inherit the main window’s permissions while loading third-party pages. To keep the app secure, use exact labels like "main" in capabilities, and always set urls when you use allowTauriWindow.
Linux: asset:// media playback, with a catch
On Linux, <video> and <audio> elements couldn’t play asset:// URLs before. Tauri 2.13 fixes that with a GStreamer plugin. The deb, rpm and pacman bundles install it to /usr/lib/<productName>/gstreamer-1.0, while AppImages only include it with bundleMediaFramework enabled. For tauri dev, the CLI downloads the plugin to its tools directory. It’s only used when app > security > assetProtocol > enable is set.
The catch sits in a single sentence of the release notes: the plugin reads the requested file directly, so media playback isn’t restricted by assetProtocol > scope. If your app uses the asset protocol and also renders untrusted content in the webview, like user-supplied Markdown or embedded web pages, take that seriously. An injected video element could request files outside the allowed scope. Check whether you actually need assetProtocol, and keep your Content Security Policy tight for media-src.
Other changes in Tauri 2.13
On macOS, iOS and Linux, the app now loads at tauri://localhost/ with a trailing slash instead of tauri://localhost. That matches the URLs on Windows and Android and fixes third-party scripts like Cloudflare Turnstile that choked on an empty path. If your own code compares location.href exactly, double-check it.
Android gets several updates. The back gesture is only intercepted while the webview can go back or a back-button listener is registered. On the first page the system takes over, so Android 16 plays its predictive back-to-home animation. tauri android dev works again on physical Android 17 devices, which require the ACCESS_LOCAL_NETWORK permission. There’s also a new androidTauriProtocolHostname option so password managers can link saved credentials to your app through Digital Asset Links. Be careful, though: it changes the app’s origin. Existing IndexedDB, cookies and local storage become unreachable, and CORS rules, CSP and OAuth redirect URIs need updating.
On Windows, browserAcceleratorKeys: false turns off browser shortcuts like F5, Ctrl+R and Ctrl+P, which tend to get in the way in a desktop app. The NSIS uninstaller gains a /DELETEAPPDATA flag to wipe application data even during silent uninstalls. On Linux, pacman is a new bundle target for Arch Linux that produces an archive with a PKGBUILD and .SRCINFO, ready for the AUR. Because it’s part of "all", your Linux CI will build one more package after the upgrade. To opt out, list your targets explicitly in bundle > targets.
Also fixed: deep links were dropped on Linux when the app launched through the bundled desktop entry. Custom desktopTemplate files need to append {{exec_arg}} to their Exec line to get the fix. For tray icons, the new linux-ksni feature uses the StatusNotifierItem protocol instead of libappindicator on Linux, which enables left clicks and tooltips. The linux-libxdo feature, on the other hand, is now a no-op, and builds no longer need libxdo-dev.
Upgrading to Tauri 2.13
Check your toolchain first, since Tauri 2.13.0 requires Rust 1.92. rustc --version tells you whether you’re on Rust 1.92 or newer. Then bump the Rust crates and npm packages together so the CLI, API and crate stay in sync:
rustup update stable
cargo update -p tauri -p tauri-build
npm install @tauri-apps/cli@2.13 @tauri-apps/api@2.13
npx tauri info
If your own code uses gtk, webkit2gtk or wry directly, for example for Linux-specific tweaks, bump those versions too, or you’ll end up with two copies of the same library in your build. For plugins, especially third-party ones, check whether they already build against the new dependencies. Separately, the Tauri 3 prerelease is still around, listed on npm under the next tag as 3.0.0-alpha.6. It’s not meant for production.
Tauri isn’t the only way to ship desktop apps built with web tech. We looked at a different approach with a tiny runtime in our piece on the TinyJS Electron alternative. For a look at desktop apps in daily use, see our comparison of desktop GUIs for coding agents. And if your frontend builds with Vite, you’ll want to know about the stricter file serving in Vite 8.4.
Our take
For multi-account apps, profileIdentifier is the reason to move to Tauri 2.13. On Windows it saves a browser process per account, and on macOS it replaces an option that only worked there. Linux remains the gap, and that belongs in your app’s docs. The new onNewWindow config is handy for OAuth popups, but only use it with narrow urls and exact window labels in your capabilities. As for the asset protocol on Linux, we’d review what content your webview renders before upgrading.
The upgrade itself is painless as long as your Rust version is current. The full list of changes is in the Tauri 2.13.0 release notes. The Tauri docs on capabilities explain how capabilities and window labels fit together, and Microsoft’s page on WebView2 multi-profile support covers the Windows side of profiles.




