Fix Logitech G Hub scripts
This commit is contained in:
parent
c2df03ce2d
commit
09939d2ee9
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ $null = New-Module {
|
|||
[string]$lghubPath;
|
||||
|
||||
function Get-LogitechGHUBName() {
|
||||
return "lghub.exe";
|
||||
return "lghub_system_tray.exe";
|
||||
}
|
||||
|
||||
function Stop-LogitechGHUB() {
|
||||
|
@ -17,7 +17,7 @@ $null = New-Module {
|
|||
$hubName = Get-LogitechGHUBName;
|
||||
$lghubPath = $(Get-Process | Where-Object { [System.IO.Path]::GetFileName($_.Path) -eq $hubName })[0].Path;
|
||||
|
||||
$mainProcesses = Get-Process | Where-Object { @($hubName, "lghub_system_tray.exe") -contains [System.IO.Path]::GetFileName($_.Path) -and $(
|
||||
$mainProcesses = Get-Process | Where-Object { @($hubName) -contains [System.IO.Path]::GetFileName($_.Path) -and $(
|
||||
$_.Parent.ProcessName -eq "explorer" -or $null -eq $_.Parent) };
|
||||
|
||||
$null = $mainProcesses | Foreach-Object { $_.Kill($true) };
|
||||
|
|
Loading…
Reference in a new issue