terminal: Bump sysinfo crate (#39681)
Release Notes: - N/A *or* Added/Fixed/Improved ... Co-authored-by: dino <dinojoaocosta@gmail.com>
This commit is contained in:
@@ -89,11 +89,11 @@ pub struct PtyProcessInfo {
|
||||
|
||||
impl PtyProcessInfo {
|
||||
pub fn new(pty: &Pty) -> PtyProcessInfo {
|
||||
let process_refresh_kind = ProcessRefreshKind::new()
|
||||
let process_refresh_kind = ProcessRefreshKind::nothing()
|
||||
.with_cmd(UpdateKind::Always)
|
||||
.with_cwd(UpdateKind::Always)
|
||||
.with_exe(UpdateKind::Always);
|
||||
let refresh_kind = RefreshKind::new().with_processes(process_refresh_kind);
|
||||
let refresh_kind = RefreshKind::nothing().with_processes(process_refresh_kind);
|
||||
let system = System::new_with_specifics(refresh_kind);
|
||||
|
||||
PtyProcessInfo {
|
||||
@@ -112,6 +112,7 @@ impl PtyProcessInfo {
|
||||
let pid = self.pid_getter.pid()?;
|
||||
if self.system.refresh_processes_specifics(
|
||||
sysinfo::ProcessesToUpdate::Some(&[pid]),
|
||||
true,
|
||||
self.refresh_kind,
|
||||
) == 1
|
||||
{
|
||||
|
||||
@@ -466,16 +466,15 @@ impl TerminalBuilder {
|
||||
|
||||
let shell_params = match shell.clone() {
|
||||
Shell::System => {
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
if cfg!(windows) {
|
||||
Some(ShellParams::new(
|
||||
util::shell::get_windows_system_shell(),
|
||||
None,
|
||||
None,
|
||||
))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
None
|
||||
}
|
||||
Shell::Program(program) => Some(ShellParams::new(program, None, None)),
|
||||
Shell::WithArguments {
|
||||
|
||||
Reference in New Issue
Block a user