#file modification via tauri

2 messages · Page 1 of 1 (latest)

fair star
#

Hello,
I'm currently checking out tauri and have some questions.

If I create tauri app and select js frontend, there is no rust backend after.

Is it possible to edit an external file.cfg?

For example I want a button to change variable value in file.cfg, for example

server(variable) on/off(value)

Or there is no need for tauri for creating simple gui buttons with file data change function?

dusk mica
# fair star Hello, I'm currently checking out tauri and have some questions. If I create t...

If I create tauri app and select js frontend, there is no rust backend after.
False, no matter what frontend framework you pick there's always a Rust based backend. The FE is what runs in the webview, the BE is what runs on the system. The BE is always in Rust

Is it possible to edit an external file.cfg?
Yep, using the Tauri API's you can do basically anything on the system. Don't try to use Node.js, this isn't Electron, native access happens through the Tauri API

For example I want a button to change variable value in file.cfg, for example
Yep just click the button and run the relevant Tauri API or plugin. There's a store plugin that might interest you

server(variable) on/off(value)
No idea what you mean here but I assume you're still talking about file.cfg in which case yep, edit all you want, but do note that Tauri apps should not ship an accompanying server generally speaking

Or there is no need for tauri for creating simple gui buttons with file data change function?
I mean that's up to you what you wanna use for making your app