use `From<std::process::Command>` instead of `args` to fix bug

pull/13770/head
yohaneYuri 2025-06-14 21:54:09 +08:00
parent 1315b7e2b1
commit 20b1c5425f
1 changed files with 1 additions and 2 deletions

View File

@ -76,8 +76,7 @@ fn open_external_url_callback(
let commands = open::commands(url.as_str());
async {
for cmd in commands {
let mut command = tokio::process::Command::new(cmd.get_program());
command.args(cmd.get_args());
let mut command: tokio::process::Command = cmd.into();
if command.output().await.is_ok() {
return Ok(job::Callback::Editor(Box::new(|_| {})));
}