Cargo Features
Open has no features set by default.
[dependencies]
open = { version = "5.3.0", features = ["shellexecute-on-windows"] }
- shellexecute-on-windows
-
If enabled, link to
system
on Windows and useShellExecuteW
intead of a command invocation when launching something in 'detached' mode. That way, it should be possible to open currently opened (for writing) files as well. This feature is only effective on Windows.There may be other side-effects that when comparing to the command-based opening of paths, which is why this feature is opt-in.
Affects
windows::that_detached
,windows::with_detached
,windows::ShellExecuteExW
…