diff options
-rw-r--r-- | crates/yt/src/commands/select/implm/standalone/mod.rs | 4 | ||||
-rw-r--r-- | crates/yt/src/commands/select/mod.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crates/yt/src/commands/select/implm/standalone/mod.rs b/crates/yt/src/commands/select/implm/standalone/mod.rs index dd6de45..8b1008e 100644 --- a/crates/yt/src/commands/select/implm/standalone/mod.rs +++ b/crates/yt/src/commands/select/implm/standalone/mod.rs @@ -47,8 +47,8 @@ pub(crate) async fn handle_select_cmd( bail!("You need to provide a url to `select url ..`") }; - let mut firefox = std::process::Command::new("firefox"); - firefox.args(["-P", "timesinks.youtube"]); + let mut firefox = std::process::Command::new(app.config.commands.url_opener.first()); + firefox.args(app.config.commands.url_opener.tail()); firefox.arg(url.as_str()); let _handle = firefox.spawn().context("Failed to run firefox")?; None diff --git a/crates/yt/src/commands/select/mod.rs b/crates/yt/src/commands/select/mod.rs index 1b06206..f9a8cd4 100644 --- a/crates/yt/src/commands/select/mod.rs +++ b/crates/yt/src/commands/select/mod.rs @@ -80,7 +80,7 @@ pub(crate) enum SelectCommand { shared: SharedSelectionCommandArgs, }, - /// Open the video URL in Firefox's `timesinks.youtube` profile + /// Open the video URL in your specified command #[command(visible_alias = "u")] Url { #[command(flatten)] |