486 questions
-1
votes
0
answers
61
views
PDF renders in browser but not inside Tauri app [closed]
I’m building a Tauri + Vite + React app, and my PDF viewer uses PDF.js. The viewer works perfectly in the browser. When I visit -
http://localhost:5173/sample.pdf
the PDF displays correctly, so Vite ...
-4
votes
0
answers
39
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 ...
2
votes
1
answer
98
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 ...
1
vote
1
answer
105
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 ...
1
vote
0
answers
78
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
81
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
0
answers
51
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
1
answer
150
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&...
0
votes
0
answers
188
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. (...
0
votes
0
answers
51
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
0
answers
42
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 ...
1
vote
1
answer
147
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 ...
0
votes
0
answers
26
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 ...
1
vote
1
answer
119
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 ...
0
votes
0
answers
236
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
147
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"...
1
vote
0
answers
78
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 ...
1
vote
1
answer
533
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
42
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 ...
-1
votes
1
answer
109
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
2
answers
139
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
56
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 ...
2
votes
0
answers
109
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 ...
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 ...
0
votes
2
answers
223
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
...