Comments (6)
The example in Quasar uses the event listener, its a different approach than the standard.
from tauri.
From @khionu
#![windows_subsystem = "windows"]
at the top of main.rs - that will prevent the console from showing
@BenoitRanque - can you see if this resolves that issue for you?
from tauri.
@nothingismagick I can confirm this does fix the issue!
I built the app using yarn tauri:source:build
from tauri.
great news.
we should probably add that to the base template then.
from tauri.
That lives here, FYI:
https://github.com/tauri-apps/tauri/blob/dev/cli/tauri.js/templates/src-tauri/src/main.rs#L1
from tauri.
There is a difference between the template and the quasar example main.rs
The first calls tauri::AppBuilder::new().setup()
The second calls tauri::AppBuilder::new().invoke_handler()
The second one also swallows errors, maybe we could use .unwrap
here:
match serde_json::from_str(arg) {
Err(_) => {} // do nothing on error?
Ok(command) => {
match command {
// definitions for your custom commands from Cmd here
MyCustomCommand { argument } => {
// your command code
println!("{}", argument);
}
}
}
}
Should I correct either one to match the other?
from tauri.
Related Issues (20)
- Are http/localhost urls blocked in Android? Can I unblock them? HOT 1
- [bug] Migration tool append unnecessary createUpdaterArtifacts config
- [docs] Readme feature clarification ("localhost free") HOT 3
- [bug] cannot create webview tauri 2 HOT 3
- [feat] set window background color HOT 1
- Quit and Close menu items do not trigger RunEvents if window was created using WindowBuilder
- [bug] [v2] Drag and drop events with `unstable` feature do not fire. HOT 1
- tauri build fails at appimage.sh [bug] HOT 1
- [bug] V2: Can't resize devtools sometimes on macOS
- Adding import for api/window causes vite desktop app not to initialize
- [bug] the message sent by channel can not be traced by vue HOT 2
- [feat] Some additional setting need to add, to work with Android TV HOT 1
- [bug] The app name displayed by windows task manager is not correct. HOT 1
- Run Compiled windows Tauri app - on windows docker
- [bug] 'IosVersionInvalid' when running 'tauri ios init' HOT 1
- [bug] PostMessage failed ; is the messages queue full? HOT 4
- [feat] `tauri migrate` shoud migrate main bin name to product name
- [bug] failed to run lipo if main bin is renamed to another name
- [bug]the windows title bar button can not be removed or disabled, or window can not be maximized as configured.
- [bug] Rust build profile with `lto=true` makes iOS build fail
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tauri.