New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't open file if the file is being used by a program on Windows #90
Comments
Thanks for bringing this up, I wasn't aware. Does Besides that, by now most of the API surface of this crates relies on the idea that a program is spawned (which then has advantages when integrating with async runtimes), which means that deviating from that can't work anymore. Unless, of course, and entirely disjoint API is added just for windows that is the same as opener. And if that would be done, it feels that It's good to see that both crates have different approaches to solve the same problems, both with their own upsides and downsides, which hopefully covers that surprisingly complex space of 'cross-platform opening of things' pretty well. What do you think? |
opener uses
I would expect open to work in this case, and using My current use case is I'm trying to use tauri shell plugin (which uses open) to open the app log file, and it fails silently
I agree, maybe I should try push tauri team to use opener for this special case, open is purely command based, adding an platform specific API call seem to be a bit too invasive |
Yes, if the Probably Even if you decide to close this issue, I'd appreciate if you would link or share the respective issue in Thank you. |
I'll open an issue on https://github.com/tauri-apps/plugins-workspace when I get the time and post a link here I think tauri currently doesn't use async for open, so that's probably not a concern Since opener doesn't have the ability to specify open program, maybe we'll end up using both, or maybe they would decide to not support open with specific program Thank you for the quick response 😀 |
When opening a file that is being used by a program, open will fail with ok result
It's common to open a log file that is still being used by the program
We currently spawn a cmd and run start command with it, can we migrate it to use Windows APIs instead like what opener does?
The text was updated successfully, but these errors were encountered: