You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm essentially a Rust novice and I have zero insight into what the ramifications might be for other OSes, but thanks for the consideration! Happy to try to hack on a PR if there's interest
This sounds like a reasonable request. From what I see there are two different kinds of arguments, some are for the launcher, and others are for the launched application.
The ones for the launched application might already work if a space-separated string is passed to the app correctly. On windows, it can just be that, I think , but on unix it needs to be pre-split. The latter isn't trivial as one would have to understand quoting and escape rules.
So I'd suggest to add something like that_with_args(&["args", "for", "launcher"], &["arg", "for", "app"]) to not break anything existing while making it easy to create a space-separated string on windows.
But that's just a guess, you might come up with other solutions and that's OK as well :) - feel free to get this ball rolling in a PR.
First of all really appreciate the library, thank you!
My app takes user input for opening urls, files, or executables. It'd be great to accept arguments when executables are run.
In short, something like:
would be able to parse and pass the arguments at https://github.com/Byron/open-rs/blob/main/src/lib.rs#L240.
Potentially using CommandLineToArgvW?
I'm essentially a Rust novice and I have zero insight into what the ramifications might be for other OSes, but thanks for the consideration! Happy to try to hack on a PR if there's interest
ref KilleenCode/brancato#22
The text was updated successfully, but these errors were encountered: