about summary refs log tree commit diff stats
path: root/crates/yt/src/commands
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-24 16:26:30 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-07-24 16:26:30 +0200
commit994971a56d50e8bb6d01583ac71fee90463e855d (patch)
tree89a91ab91c15666da15f999f07e978154b50eac2 /crates/yt/src/commands
parentfix(crates/yt/storage/db/videos/comments): Don't always associate a reply wit... (diff)
downloadyt-994971a56d50e8bb6d01583ac71fee90463e855d.zip
fix(crates/yt/commands/select): Allow configuring the `yt select url` opener
Diffstat (limited to 'crates/yt/src/commands')
-rw-r--r--crates/yt/src/commands/select/implm/standalone/mod.rs4
-rw-r--r--crates/yt/src/commands/select/mod.rs2
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)]