From 994971a56d50e8bb6d01583ac71fee90463e855d Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 24 Jul 2025 16:26:30 +0200 Subject: fix(crates/yt/commands/select): Allow configuring the `yt select url` opener --- crates/yt/src/commands/select/implm/standalone/mod.rs | 4 ++-- 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)] -- cgit 1.4.1