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:
Lukas Wirth
2025-10-13 16:31:00 +00:00
committed by GitHub
co-authored by dino
parent bec2bfeb8b
commit f76eecd758
9 changed files with 57 additions and 75 deletions
+3 -2
View File
@@ -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
{
+3 -4
View File
@@ -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 {