From 0e92b47ffaaddec0a257b0097f37d34e26e5cfc0 Mon Sep 17 00:00:00 2001 From: Lord Hepipud Date: Thu, 19 Sep 2019 16:22:05 +0200 Subject: [PATCH] Fixed issue on opening new check commands with default Editor --- lib/core/tools/New-IcingaCheckCommand.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/tools/New-IcingaCheckCommand.psm1 b/lib/core/tools/New-IcingaCheckCommand.psm1 index 3f4070d..2790c92 100644 --- a/lib/core/tools/New-IcingaCheckCommand.psm1 +++ b/lib/core/tools/New-IcingaCheckCommand.psm1 @@ -78,7 +78,7 @@ function New-IcingaCheckCommand() # Try to open the default Editor for the new Cmdlet $DefaultEditor = (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.psm1\OpenWithList' -Name a).a; - #$DefaultEditor = $DefaultEditor.Replace('.exe', ''); + $DefaultEditor = $DefaultEditor.Replace('.exe', ''); Write-Host ([string]::IsNullOrEmpty($DefaultEditor)); Write-Host ((Get-Command $DefaultEditor -ErrorAction SilentlyContinue));