481 questions
0
votes
0
answers
11
views
Regarding the menu theme created with Tauri v2
Even if I run setTheme("light") in my browser and view the Tauri menu,
it remains in the dark theme. The system theme is dark.
Is there a way to change the menu theme?
import { setTheme } ...
Best practices
0
votes
0
replies
48
views
How should I pass user secrets from my frontend to my backend with Tauri?
I'm currently working on an app that stores secrets in an encrypted vault, and the key is derived from a user password. How can I securely prompt the user for their password? Is the IPC with invoke ...
Advice
1
vote
2
replies
77
views
Tauri or Electron js
I’m starting a new project to build an ERP POS application using the MERN stack. I’m confused about whether I should use Electron.js or Tauri to turn it into a desktop/web app. Which option is better ...
-4
votes
0
answers
50
views
Wrong styles applied to a Tauri App frontend under Archlinux
I'm learning how to develop desktop apps with tauri (v2) and cannot wrap my head around a styling/css problem I have.
I built a custom version of the drawing application Draw.io locally and I embed it ...
0
votes
0
answers
32
views
Returning general json data in a tauri specta app [duplicate]
I'm working on a tauri application, Fluster. I'm trying to add a method to parse general tabular data using polars, and then return that data as a vec of hashmaps.
I'm currently running into this ...
2
votes
1
answer
107
views
File Provider extension cannot access App Group container despite identical entitlement
I have a Tauri/Rust application with a native Swift File Provider extension. Both are configured to use the same App Group, but the extension cannot access the shared continer at all - it can't even ...
0
votes
1
answer
80
views
When launching an application on tauri, a console opens
When launching an app on Windows Tauri v2, the console window opens, but the app itself immediately closes, and the app itself disappears into the background. The same thing happens when refreshing ...
2
votes
1
answer
124
views
How can I run a C file inside a Tauri app?
I have made a C file which displays certain data using the printf command
I want to make a Tauri app to display this data. For now, I am still trying to get the data from the Tauri app. How could I do ...
6
votes
1
answer
125
views
Why are these expressions interchageable: `State<Mutex<User>>` and `State<'_, Mutex<User>>`?
I am learning how to use state management in Tauri. I am following these resources:
Official docs - State Management
State Management
Getting Started With Rust And Tauri
This is the code I am ...
2
votes
0
answers
97
views
#[tauri::command] macro generates “defined multiple times” error when using lib.rs
I’m trying to create a Tauri app by moving some commands into lib.rs.
lib.rs
#[tauri::command]
pub async fn get_file_path_in_rust(file_path: String) {
println!("The Path Received: {}", ...
2
votes
1
answer
91
views
Tauri + expectrl PTY: interactive CLI freezes when waiting for input (read thread holds mutex) — how to do concurrent read/write safely?
Background
Tauri v2 desktop app (macOS, Apple Silicon) with React + xterm.js frontend.
Rust backend spawns local CLI “agents” (Codex / Gemini) in a PTY using expectrl 0.7.1, forwards output to the ...
1
vote
1
answer
308
views
Tauri window opens fine on macOS but hangs with blank window on Windows (no logs after #2)
I’m developing a desktop app with Rust + Tauri (v2.5) + SvelteKit.
On macOS my command for opening a new settings window works perfectly. On Windows however, the app freezes when building the window: ...
1
vote
0
answers
52
views
Unexpected crash on Tauri related to objective c and c++ bridge
Basically, I am puzzled by this crash I am getting.
For context, I am running a Tauri app for a multi platform desktop app (windows and mac). My windows part works perfectly using winsocks, however I ...
0
votes
0
answers
92
views
tauri clipboard-manager.write_text not allowed
this React code
import { message } from "@tauri-apps/plugin-dialog";
import { writeText } from "@tauri-apps/plugin-clipboard-manager";
async function copy() {
try {
...
0
votes
1
answer
175
views
How to correctly configure directory access permissions for the dialog plugin's file picker in a Tauri2.0 project
Here's my capabilities/default.json file. This is a demo, but I still can't figure it out after reading the official documentation:
{
"$schema": "../gen/schemas/desktop-schema.json&...
1
vote
0
answers
88
views
TauriV2, get the element under the mouse for a drag event?
Say we want to do something like drag a file from the OS file explorer onto an element in order to set it's value. As far as I can tell the only way to do this in tauriv2 is to get the DOMRect of the ...
0
votes
0
answers
239
views
Open external local web app from Tauri v2
I created some docs and using Doxygen I built and exported them as HTML/CSS/JS files inside html directory.
Now I need somehow to add a help button in my Tauri v2 app that opens this external docs. (...
1
vote
1
answer
124
views
Tauri black window
When I install and build the Tauri starter app or use a library like Dioxus I always get a black screen. Currently I am using PopOS and I have the WEBKIT_DISABLE_DMABUF_RENDERER=1 set in my ...
0
votes
0
answers
53
views
Serializing dates using rust's tauri-specta and apache arrow
I'm working on a Tauri application that uses tauri-specta for type safety and I can't figure out how to properly serialize dates. This is the file where most of the serialization and deserialization ...
0
votes
1
answer
268
views
Tauri Plugin dialog not found
Good afternoon, I'm new to tauri and rust in general, I'm using react as front-end and I'm trying to retrieve all the files inside a directory.
So far I've read that I should use the open function in ...
0
votes
0
answers
43
views
Vite somehow in a loop, colliding with it's own process
I'm working with Tauri, using React and Vite for the front end. Everything was going well, but recently after changing some things around in this monorepo vite runs into a bug where it attempts to ...
0
votes
1
answer
279
views
In Tauri V2, how can I get a my resource path before tauri::Builder?
In Tauri V2, to get a resource path you can use app.path().resolve("migration", BaseDirectory::Resource), the problem I have is I need to use the path before I have a reference to app. So ...
1
vote
1
answer
165
views
Save one log file per day with Tauri
I'm using the Tauri framework. I just configured tauri_plugin_log and it is working very well. The log files are being saved in the correct folders with the right names.
How can I save one log file ...
1
vote
0
answers
91
views
How to edit the hover text on the dock for a Tauri app?
I'm wondering how to edit this hover text that appears when I hover on my Tauri app on the dock:
Currently, it's just the default app name, and I can't figure out a way to change it to Pepper, which ...
0
votes
0
answers
32
views
input reading instant with Tauri 2.0 not working
Info
I want to press the the add color button and then the color should be added instantly to the color_list
HTML
<!DOCTYPE html>
<html lang="de">
<head>
<meta ...
0
votes
0
answers
265
views
How to properly embed a WebView inside a Vue component in a Tauri 2 + Vite application?
I’m building a desktop application using Tauri 2, Vue 3, and Vite, and I need to display an external website from within a Vue component using a WebView.
I tried using an , but many websites (like ...
1
vote
1
answer
127
views
How to change window controls position on macOS?
I noticed that many native macOS apps with headers have their controls positioned differently. I would like to emulate this behaviour with Tauri.
Currently, I have a window with a titleBarStyle set ...
2
votes
1
answer
92
views
Is there a way to have platform-specific CSS/HTML?
For example, I want mac.css and window.css to be applied only when Tauri builds for that particular platform.
I'm using Vite with Tauri.
0
votes
0
answers
251
views
How can I access a static SQLite database as a resource in an Android Tauri 2 app?
I have made a Tauri 2.0 dictionary app, with Android as the target platform. It uses Vue.js on the front-end, with a sqlx connection to a static SQLite database file that contains all the words and ...
0
votes
0
answers
171
views
arm64-v8a not supported with tauri and android studio
I am trying to build a tauri app for android and i am using android studio to run the app. I am connected to my Google Pixel 7a, which supports arm86-v8a. Therefore my apk must support arm86-v8a as ...
0
votes
0
answers
161
views
Tauri App Displays Empty Window on Windows Build – Expected HTML Not Loading
I built my application using a Tauri React template created with cargo create-tauri-app
1. Tauri Configuration (tauri.config.json)
{
"$schema": "https://schema.tauri.app/config/2"...
0
votes
0
answers
68
views
Chakra-ui/react Tauri Vite - Cannot initialise app after build (uncaught type error extendStatics is not a function)
Had this issue for a while where I can build to completion but initialisation leads to the following error:
react-BqWMAaNf.js:1228 Uncaught TypeError: extendStatics is not a function
at __extends ...
1
vote
0
answers
88
views
How to insert a character from a virtual keyboard into the focused window using Tauri and pure JS?
I'm building a virtual keyboard using Tauri and pure JavaScript. My application is already set up, but I want to insert the character from the virtual keyboard into the focused window when a key is ...
0
votes
0
answers
38
views
NextJS viewport doesn't work with `output: 'export'`
The goal is to avoid zooming and pinching. I'm using NextJS 14.2.5. I tried the viewport object, generateViewport, and also the Head component.
The docs say it:
The viewport object and ...
1
vote
1
answer
565
views
Tauri with TailwindCSS `env(safe-area-inset-bottom)` doesn't work on bottom navigation bar
I've been trying to solve this iPhone issue with the bottom navigation bar and the top safe area being transparent with no luck:
What I have tried:
Using the env(safe-area-x) on tailwindcss side:
@...
0
votes
0
answers
63
views
tauri TypeError: window is not a function in tray app
Minimize the tray application, perform corresponding window operations based on user actions.
First time opening the tauri app, the desktop tray can run normally, but an error occurs in the desktop ...
0
votes
0
answers
46
views
Error with Sharp installation in Tauri project – Peer dependencies and build issues
I'm working on a simple Rust application with a frontend built with HTML/CSS/JavaScript, and I thought Tauri would be a good fit. However, I'm stuck with an error related to Sharp that prevents me ...
3
votes
0
answers
772
views
How to Use CEF (Chromium Embedded Framework) Instead of Wry and Tao in a Tauri App?
I'm developing a Tauri app and want to use CEF (Chromium Embedded Framework) as the webview instead of the default Wry and Tao. My goal is to leverage CEF's advanced capabilities, such as better ...
-1
votes
1
answer
124
views
async tauri command returning dynamic error, does not implement necessary traits
im trying to give a client application email functionality using lettre and tokio.
The code itself should work, though declaring the function a tauri::command gives problems, i don't know how to solve....
0
votes
0
answers
102
views
Why does the Released event state not occur when window.close() gets called?
I am trying to make a Tauri application where when the main window gets closed it gets only minimized to the tray and if you press the shortcut Ctrl + E a floating window opens that gets closed on ...
0
votes
2
answers
140
views
(Tauri) Can't refresh access token in cloud function - invalid_grant
I'm experimenting with Google OAuth2.0 authorization and access token refreshing in a Firebase cloud function. In my Tauri desktop app I'm using Firebase's signInWithPopup() function in order to ...
0
votes
0
answers
99
views
Building Tauri app and using objc2 and objc2_user_notifications to implement macOS notifications. The notification permission requests failed
i tried https://lib.rs/crates/mac-notification-sys this crate but this's old and stuck my app after notification shown.
i written this code by ChatGPT , it's not clean and maybe some wrongs here.
here'...
0
votes
0
answers
62
views
Can the sqlite db be included in the apk file itself?
I made a CURD App using splite3 with Tauri Ver2.
It's working fine, but I have a question.
At the moment, I'm copying the sqlite database app.db to Android manually using the adb command, and ...
1
vote
0
answers
190
views
Tauri Build Error: "The system cannot find the file specified (os error 2)" when using NSIS Installer Template
In my tauri.conf.json file, I have the following configuration:
"bundle": {
"createUpdaterArtifacts": true,
"windows": {
"nsis": {
"template": "...
2
votes
0
answers
117
views
Tauri v2 on macOS: How to Open Custom slack:// URLs?
I'm developing a Tauri v2 application (using Svelte and Tabulator) where I need to open a Slack deep link using the custom protocol (e.g., slack://user?team=TEAM_IDid=USER_ID). My goal is to launch ...
0
votes
0
answers
141
views
Tauri v2 - "Cannot find module" error (in Fedora Linux)
Me making a tauri-app like Tauri's guide. I run tauri android init then ok, but it happens that after running npm run tauri android build --apk, I receive an error:
Error: Cannot find module '/home/...
3
votes
1
answer
2k
views
Integrating shadcn/ui with Tailwind CSS v4 in a Tauri Application Using Vite and React
I'm developing a Tauri application with Vite and React and aim to integrate shadcn/ui using Tailwind CSS version 4. However, I'm encountering the following error during setup:
command used:
pnpm dlx ...
2
votes
1
answer
450
views
window.__TAURI__ is not available
Tauri v2 with Next.js v15
I was trying to use database SQLite in my Tauri app, I followed the official documentation and the database is working correctly. Like I can perform DB operations normally, ...
0
votes
2
answers
234
views
Angular + Tauri: SyntaxError: Unexpected token '=' promiseReactionJob on macOS 10.15.7 or older
I am working on an Angular 17 + Tauri application, and I encountered the following error when running the app on macOS 10.15.7 or lower:
SyntaxError: Unexpected token '=' promiseReactionJob
...
0
votes
0
answers
240
views
Tauri Android application self-update
I have an Android application built with Tauri. I have a web server that provides access to the latest APK file, allowing me to check for updates, download the new version, and save it as a file. And ...