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
2
votes
1 answer

Tauri - disable menubar

So I am trying to disable this menu bar in Tauri But I couldn't find where to disable it in the configuration. Can anyone please help me?
2
votes
1 answer

Can I use a service like Firebase or Supabase in a Tauri desktop application?

I am a full-stack web developer that has experience with JavaScript and React. I want to create a desktop application using these technologies using a framework like Tauri. I enjoy using services like Firebase, Supabase & AWS Amplify. Can I use…
2
votes
3 answers

"mismatched types expected unit type `()` found enum `Option`" Error when trying to read the content of a file with Tauri

I was trying to use the file picker of tauri to read the contents of a file in Rust this way. fn open_file() -> Option { let dialog_open_file = tauri::api::dialog::FileDialogBuilder::new(); dialog_open_file.pick_file(|path| { …
Fernando JRR
  • 21
  • 1
  • 3
2
votes
1 answer

Is it possible to keep global variable `window.__TAURI__` after returning from authentication page?

I'm using Tauri in a corporate setting with single sign-on. When I serve my webpage, it redirects to an authentication page and then forwards on to my original url. I have withGlobalTauri set to true, but the window.__TAURI__ object is deleted when…
svenwulf
  • 121
  • 7
2
votes
0 answers

How to configure installer in tauri

I am new to tauri development,is there any way to configure nsis(installer) change application icon ,final banner image, and enable/disable run application after installing the app just like electron package.json build configuration
d-feverx
  • 1,424
  • 3
  • 16
  • 31
1
vote
1 answer

Sending a map from JS to Rust does not arrive

I have a small tauri app that on the JS part sends some data back to the rust backend using the invoke method. The method works, most of the data arrives to the backend. The data itself contains a map, which does not arrive though. const [details,…
1
vote
0 answers

Need help invoking a rust library with Typescript in Tauri

In my project I want to analyze the source code of a PHP file and convert it to AST. There is already a javascript package for this, but it only works with node. So I tried to convert the PHP code to AST using a Rust library. However, I have no…
1
vote
0 answers

How can I use Tauri to create a directory in a user-selected directory?

When I use the createDir method in Tauri + Typescript, I have to specify a base directory (dir) in the FsDirOptions. But I want to give the user himself the possibility to choose a target directory. Can I convert the selected destination path to an…
1
vote
0 answers

Setting macOS's `isDocumentEdited` status in Tauri

I'm new to Tauri (and Rust) and trying to set my app window's isDocumentEdited status (a macOS-only feature). I found a feature request that seems to indicate that Tauri supports this, which includes a brief example: Event::MainEventsCleared => { …
1
vote
1 answer

Save canvas data as png or jpg in Tauri using fs module

I want to save my canvas data to file using the Tauri fs module. This is my code, but it didn't work. const { writeBinaryFile, BaseDirectory } = window.__TAURI__.fs; var canvas = document.getElementById("myCanvas"); var ctx =…
1
vote
1 answer

Tauri app api request blocked by cors with api built with django restframework

https://tauri.localhost' has been blocked by CORS policy: Request header field access-control-allow-origin is not allowed by Access-Control-Allow-Headers in preflight response. I have added https://tauri.localhost to my cors configuration in my api…
tisanyada
  • 13
  • 3
1
vote
1 answer

run batch file using Tauri ( using Javascript) in Windows

I'm using Tauri with React JS as frontend in WINDOWS. And this App i'm trying to make is also for windows for now I want to write a batch script inside user's computer then run it . I'm making a small app which will set user's desktop wallpaper,…
1
vote
0 answers

How can I convert HTML Element into PDF inside Tauri App with Nextjs?

I'm trying to convert my HTML Element into PDF and download it like what normal browsers do. This is what I did const onGeneratePdf = () => { const input = document.getElementById('divToPrint')!; const { clientWidth, clientHeight } =…
Dylan
  • 1,121
  • 1
  • 13
  • 28
1
vote
0 answers

Abort invoke promises in tauri

I have a Tauri app which calls some rust commands with the invoke function a bunch of times. The problem is that when the user changes the page while the request is still going, the request itself does not stop and keeps running in background,…
Neku80
  • 361
  • 4
  • 16
1
vote
0 answers

Tauri app installs successfully but doesn't run

I'm writing a Tauri app to scrape a web page and provide a user-friendly UI. I've managed to get it to an MVP but there is a problem. Running yarn tauri build successfully builds the .msi installer. Running the installer also is sucessful and…
Gustavo Shigueo
  • 399
  • 3
  • 11
1 2
3
17 18