fix(shell): export `open` module (#939)

closes #934
pull/959/head
Amr Bashir 1 year ago committed by GitHub
parent 2f0e30852a
commit e856adc72c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"shell": "patch"
---
Export `open` module.

@ -28,7 +28,7 @@ use tauri::{
mod commands;
mod config;
mod error;
mod open;
pub mod open;
pub mod process;
mod scope;
mod scope_entry;
@ -60,7 +60,7 @@ impl<R: Runtime> Shell<R> {
/// Open a (url) path with a default or specific browser opening program.
///
/// See [`crate::api::shell::open`] for how it handles security-related measures.
/// See [`crate::open::open`] for how it handles security-related measures.
pub fn open(&self, path: impl Into<String>, with: Option<open::Program>) -> Result<()> {
open::open(&self.open_scope, path.into(), with).map_err(Into::into)
}

Loading…
Cancel
Save