Questions tagged [tauri]

Tauri is a toolkit that helps developers make applications for the major platforms -- using HTML, CSS, and JavaScript. The core is built with Rust and leverages the local Webview2 / WebKit instance.

Resources:

262 questions
3
votes
2 answers

NeutralinoJS and Tauri backend services

I have used Electron for many years and like the fact that I can deliver a frontend app that has a bunch of backend services (connections to databases etc) that can be bundled in a dmg. Electron is however a bit heavyweight and I have been looking…
jmc42
  • 359
  • 5
  • 22
2
votes
0 answers

Is there a way to use Tauri's `invoke` function in a web worker?

I want to know if it is possible to run invoke from Tauri, in a web worker. I am using Tauri and Svelte. When I try to use invoke from a web worker, I get this error: chunk-NMUKSDLG.js:1 Uncaught ReferenceError: window is not defined at…
Fighter178
  • 303
  • 2
  • 9
2
votes
1 answer

vitest cannot test for presence of specific styling

TLDR - None of the methods (console logs or expect) in this test are working - https://github.com/kartik-madhak/noter/blob/help!/recreate-test-issue-branch/src/tests/theme.test.tsx#L20 I am creating a React-Tauri app using Vite. In my application,…
EReload
  • 199
  • 2
  • 12
2
votes
0 answers

Rust/Tauri web-driven game engine

I'm currently trying to create a game engine in rust. I have a rust Game module that generate a framebuffer of pixels every frame. I then display it directly to the screen in the case of the game. However, I also want to have a game editor…
xam4lor
  • 64
  • 6
2
votes
2 answers

how to use tauri app and python script as a back end

i wanted to know how to use python script with tauri app, i tried a few things but failed i try to take an input from the user using html tag then want to pass it to python and then after the python code does the adding wanted to display the result…
2
votes
1 answer

How to deserialize complex JSON to Rust type?

I am trying to build a Tauri App. I have an error I do not know how to fix, when trying to deserialize data from my frontend to my Rust backend, passed as JSON. The JSON follows this schema: { positive: ICriterion[], negative:…
TPouliquen
  • 114
  • 2
  • 14
2
votes
1 answer

System tray tooltips in Tauri

Is there a simple way to make a tooltip appear when hovering a system tray icon? This is really common in Windows apps. SystemTrayEvent does not appear to support a hover event, and SystemTray does not seem to have a way to set a hover text.
Pieter
  • 31,619
  • 76
  • 167
  • 242
2
votes
0 answers

Tauri frontend server not starting

I've been using Tauri for a personal project recently, I am working on the project on two different computers, since I try to work on it on my spare time from my laptop if I am outside, and from my desktop when I am home. I cloned the git repo from…
2
votes
1 answer

How can I check if a path is allowed in tauri.config allowList on Rust side before reads and writes of files?

I have a tauri application that is reading and writing for example yaml files for the application configurations in the users machine. Initially I moved the implementation from frontend side of the application to the backend. To get things working I…
2
votes
1 answer

Can i store and restore size and window position for multiple windows in Tauri?

I need to store a window size and position for multiple windows in tauri. And restore it after open. For example there was opened 3 windows and they have located in different parts of desktop. And when i'll open an application again app will restore…
Snoz3f
  • 173
  • 1
  • 10
2
votes
0 answers

How to create new window through window menu in Tauri?

I've tried to create new app window through window menu. But there i faced with issue that method create_window is not available How can i do that? #![cfg_attr( all(not(debug_assertions), target_os = "windows"), windows_subsystem =…
Snoz3f
  • 173
  • 1
  • 10
2
votes
1 answer

How to create a window in tauri with kiosk mode? (mac os, windows os)

In electron, I can easily create a kiosk window by just adding a param kiosk: true. But in tauri, is there any way to achieve that? I searched their official doc and couldn't find any. Note: Here I'm referring to creating a window in fullscreen…
emranio
  • 319
  • 2
  • 10
2
votes
0 answers

Tauri and Mysql

I'm trying to build a simple application using Tauri. I want to use mysql(or postgress...) for the backend. But I do not find anything on how I can implement mysql with rust using Diesel or sqlx etc. I tried their pluging…
Crakenar
  • 83
  • 10
2
votes
1 answer

How to update video's current time when new video is loaded with Tauri and Svelte?

I'm currently creating a windows app with Tauri and Svelte, but ran into some problem. I have a button which when clicked opens the file system to allow a new video to be selected. When a new video is selected I update the VideoStore with the new…
ben mi
  • 65
  • 6
2
votes
0 answers

How to run multiple intervals in tauri with tokio

currently, I am building a small application with Rust and Tauri but I've got the following issue that I need to solve: Things that I want to do simultaneously: Checking every 10 sec if a specific application is running Polling every second data…
RobDeFlop
  • 21
  • 3
1
2
3
17 18