mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-22 21:30:44 +02:00
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"shell": "patch"
|
||||||
|
---
|
||||||
|
|
||||||
|
Export `open` module.
|
||||||
@@ -28,7 +28,7 @@ use tauri::{
|
|||||||
mod commands;
|
mod commands;
|
||||||
mod config;
|
mod config;
|
||||||
mod error;
|
mod error;
|
||||||
mod open;
|
pub mod open;
|
||||||
pub mod process;
|
pub mod process;
|
||||||
mod scope;
|
mod scope;
|
||||||
mod scope_entry;
|
mod scope_entry;
|
||||||
@@ -60,7 +60,7 @@ impl<R: Runtime> Shell<R> {
|
|||||||
|
|
||||||
/// Open a (url) path with a default or specific browser opening program.
|
/// 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<()> {
|
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)
|
open::open(&self.open_scope, path.into(), with).map_err(Into::into)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user