mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-21 04:01:01 +03:00
fix: linux workaround cmd path (#12172)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user