From 487c0afa5595529a23d8ece019f4300d71047361 Mon Sep 17 00:00:00 2001 From: ThioJoe <12518330+ThioJoe@users.noreply.github.com> Date: Mon, 13 Oct 2025 15:33:08 -0700 Subject: [PATCH] SandboxStartup - Fix wrong variable used in registry value It was using a previous removed variable and therefore wasn't properly setting notepad++ to be associated with .txt files if applicable --- Startup Scripts/SandboxStartup.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Startup Scripts/SandboxStartup.ps1 b/Startup Scripts/SandboxStartup.ps1 index 86f5149..89653f0 100644 --- a/Startup Scripts/SandboxStartup.ps1 +++ b/Startup Scripts/SandboxStartup.ps1 @@ -108,7 +108,7 @@ If (($null -ne $notepadPath) -or ($null -ne $notepadPlusPlusPath)) { If (!(Test-Path 'HKLM:\SOFTWARE\Classes\txtfile\shell\open\command')) { New-Item -Path 'HKLM:\SOFTWARE\Classes\txtfile\shell\open\command' -Force } # Prefer Notepad++ if available, otherwise use Notepad If ($null -ne $notepadPlusPlusPath) { - Set-ItemProperty -Path 'HKLM:\SOFTWARE\Classes\txtfile\shell\open\command' -Name '(Default)' -Value ('"{0}" -settingsDir=%appdata% "%1"' -f $editorPath) -Type ExpandString -Force + Set-ItemProperty -Path 'HKLM:\SOFTWARE\Classes\txtfile\shell\open\command' -Name '(Default)' -Value ('"{0}" -settingsDir=%appdata% "%1"' -f $notepadPlusPlusPath) -Type ExpandString -Force } Else { # If Npp isn't available, condition above means we know notepadPath is still available cmd /c ftype txtfile=`"$notepadPath`" "%1" }