aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
]