-
Notifications
You must be signed in to change notification settings - Fork 11
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
opener::open
does not fail at all, even when e.g. file is missing on Linux
#25
Comments
When the system opener/opener/src/linux_and_more.rs Lines 52 to 58 in ff6e259
It seems the internal |
Tried with the bundled xdg-open and it fails as expected
The way I'm seeing is the problem is that the library just checks if the spawning fails, but does not actually check the exit code of the spawned process. https://github.com/Seeker14491/opener/blob/master/opener/src/linux_and_more.rs#L69-L98 |
Ah, you're right, though that is intentional. The issue is that we don't want to block on the |
Interesting - is there a reason the crate waits on Mac then? At least on my system, xdg-open exits once the file has been opened and does not wait for the process to terminate. |
Yes, on Mac the system-provided |
Repro:
The text was updated successfully, but these errors were encountered: