fix: linux workaround cmd path (#12172)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-06-26 09:49:22 +08:00
committed by GitHub
parent 7b7c93b78d
commit bb6e080c1c
3 changed files with 13 additions and 8 deletions

View File

@@ -5,7 +5,9 @@ use crate::lang::translate;
use gtk::{glib, prelude::*};
use hbb_common::{
anyhow::{bail, Error},
log, ResultType,
log,
platform::linux::CMD_SH,
ResultType,
};
use nix::{
libc::{fcntl, kill},
@@ -468,7 +470,7 @@ fn child(su_user: Option<String>, args: Vec<String>) -> ResultType<()> {
if su_user.is_some() {
params.push("-S".to_string());
}
params.push("/bin/sh".to_string());
params.push(CMD_SH.to_string());
params.push("-c".to_string());
let command = args