Cargo Features

Open has no features set by default.

[dependencies]
open = { version = "5.1.2", features = ["shellexecute-on-windows"] }
shellexecute-on-windows

If enabled, link to shell32 on Windows and use ShellExecuteW 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.

However, linking errors have been observed due to it where the one external function used here couldn't be found, which is why it was put behind a feature toggle.

This feature is only effective on Windows.

Affects windows::that_detached, windows::with_detached, windows::ShellExecuteW