fix(desktop): pass extras slice to Command::args without deref

cmd.args(*extras) on &[&str] fails to compile on stable Rust because
[&str] is unsized. Drop the deref so the slice passes through.
This commit is contained in:
AgentSeal 2026-04-18 03:30:49 -07:00
parent 9d4da7c0fd
commit d8ff4dcca7

View file

@ -159,7 +159,7 @@ pub fn spawn_in_terminal(_app: &AppHandle, subcommand: &[&str]) -> Result<()> {
// followed by `bash -lc`. The allowlist guarantees no quoting is needed.
let composite = command_parts.join(" ");
let mut cmd = std::process::Command::new(program);
cmd.args(*extras);
cmd.args(extras);
cmd.arg(&composite);
cmd.spawn().with_context(|| format!("failed to launch {}", program))?;
return Ok(());