mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-20 23:11:24 +02:00
fix(single-instance): forward non-Unicode arguments and cwd (#3644)
* Update windows.rs * Create single-instance-non-unicode-args.md * fix on linux and windows too --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app>
This commit is contained in:
1 parent
677258138b
commit
323fe80df1
5 files changed
+24
-11
No files matched your search
@@ -39,8 +39,9 @@ pub(crate) type SingleInstanceCallback<R> =
|
||||
/// [`Builder::build`]. Use [`Builder`] directly if you need to set a custom [`Builder::dbus_id`].
|
||||
///
|
||||
/// `f` is called with the app handle, the second instance's command line arguments
|
||||
/// (as collected by [`std::env::args`], so the first element is the executable path) and its
|
||||
/// current working directory. If the `deep-link` feature is enabled, the arguments are first
|
||||
/// (as collected by [`std::env::args_os`], so the first element is the executable path) and its
|
||||
/// current working directory. Arguments and the working directory that are not valid Unicode
|
||||
/// have their invalid parts replaced by U+FFFD. If the `deep-link` feature is enabled, the arguments are first
|
||||
/// forwarded to [`tauri-plugin-deep-link`](https://crates.io/crates/tauri-plugin-deep-link)
|
||||
/// before `f` runs.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user