Skip to content

Commit 70fb3f0

Browse files
committed
Merge from main@5c4937f6ebe3f0674b2f3f638185523d67bfef8c
* src/main: capture-hw-details.sh: get igc64.dll version from the currenlty loaded graphics driver (#5439)
2 parents 1584fcf + 5c4937f commit 70fb3f0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/capture-hw-details.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,17 @@ done
2020

2121
function libigc_version {
2222
if [[ $OSTYPE = msys ]]; then
23-
powershell -Command "(Get-ChildItem c:/Windows/System32/DriverStore/FileRepository/*/igc64.dll).VersionInfo.ProductVersion"
23+
pwsh -Command '
24+
$igc = @(Get-Process -Name dwm -Module | Where-Object ModuleName -eq 'igc64.dll').FileVersionInfo.FileVersion | Sort-Object -Unique
25+
if ($igc.Count -gt 1) {
26+
Write-Host "MULTIPLE"
27+
}
28+
elseif ($igc.Count -eq 1) {
29+
Write-Host $igc
30+
}
31+
else {
32+
Write-Host "Not Found"
33+
}'
2434
return
2535
fi
2636
if dpkg-query --show libigc2 &> /dev/null; then

0 commit comments

Comments
 (0)