Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Commit

Permalink
imp - Suppressed stderr messages
Browse files Browse the repository at this point in the history
We've suppressed stderr messages.

---

To suppress stderr messages, we've enabled redirecting standard error
stream. However, we're not using it. This will fix extraneous output for
Android devices.

---

Type: imp
Breaking: False
Doc Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Aug 17, 2023
1 parent 61d2caf commit 56e4fbc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Inxi.NET/Core/InxiHardwareInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ public HardwareInfo(string InxiPath, InxiHardwareType ParseFlags)
CreateNoWindow = true,
UseShellExecute = false,
WindowStyle = ProcessWindowStyle.Hidden,
RedirectStandardOutput = true
RedirectStandardOutput = true,
RedirectStandardError = true,
};
SystemProfilerProcess.StartInfo = SystemProfilerProcessInfo;
InxiTrace.Debug("Starting system_profiler with \"SPSoftwareDataType SPAudioDataType SPHardwareDataType SPNetworkDataType SPStorageDataType SPDisplaysDataType -xml\"...");
Expand All @@ -124,7 +125,8 @@ public HardwareInfo(string InxiPath, InxiHardwareType ParseFlags)
CreateNoWindow = true,
UseShellExecute = false,
WindowStyle = ProcessWindowStyle.Hidden,
RedirectStandardOutput = true
RedirectStandardOutput = true,
RedirectStandardError = true,
};
InxiProcess.StartInfo = InxiProcessInfo;
InxiTrace.Debug("Starting inxi with \"-Fxx --output json --output-file print\"...");
Expand Down Expand Up @@ -311,4 +313,4 @@ public HardwareInfo(string InxiPath, InxiHardwareType ParseFlags)
}

}
}
}

0 comments on commit 56e4fbc

Please sign in to comment.