aboutsummaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-07 15:05:45 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-11-07 15:05:45 +0100
commit24a8b107802ec7e3b8113a46183daaffd421da8b (patch)
treedf0252a2ec3d934187a98abb55e9efb4feb9b475 /crates
parentfix(yt/cmds/version): Update to new config code (diff)
downloadyt-24a8b107802ec7e3b8113a46183daaffd421da8b.zip
fix(yt/cmds/watch/external_run): Use new config cmd line options for re-exec
Diffstat (limited to 'crates')
-rw-r--r--crates/yt/src/commands/watch/implm/playlist_handler/client_messages.rs18
1 files changed, 12 insertions, 6 deletions
diff --git a/crates/yt/src/commands/watch/implm/playlist_handler/client_messages.rs b/crates/yt/src/commands/watch/implm/playlist_handler/client_messages.rs
index fd7e035..d98b98c 100644
--- a/crates/yt/src/commands/watch/implm/playlist_handler/client_messages.rs
+++ b/crates/yt/src/commands/watch/implm/playlist_handler/client_messages.rs
@@ -23,17 +23,23 @@ async fn run_self_in_external_command(app: &App, args: &[&str]) -> Result<()> {
let binary =
env::current_exe().context("Failed to determine the current executable to re-execute")?;
+ let db_path_arg = format!(
+ "{:?}",
+ app.config
+ .paths
+ .database_path
+ .to_str()
+ .context("Failed to parse the database_path as a utf8-string")?,
+ );
+
let arguments = [
&[
binary
.to_str()
.context("Failed to turn the executable path to a utf8-string")?,
- "--db-path",
- app.config
- .paths
- .database_path
- .to_str()
- .context("Failed to parse the database_path as a utf8-string")?,
+ "--option",
+ "paths.database_path",
+ db_path_arg.as_str(),
],
args,
]