From 8f0710f4b50d0652c4cbe298d890f72c099e2410 Mon Sep 17 00:00:00 2001 From: Fedor Date: Thu, 16 Jul 2020 15:13:16 +0300 Subject: [PATCH] #208 Fix default browser setting not recognized. --- .../components/shell/nsWindowsShellService.cpp | 10 +++++----- .../components/shell/nsWindowsShellService.cpp | 10 +++++----- .../palemoon/installer/windows/nsis/installer.nsi | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/application/basilisk/components/shell/nsWindowsShellService.cpp b/application/basilisk/components/shell/nsWindowsShellService.cpp index 178207d0b..85615134b 100644 --- a/application/basilisk/components/shell/nsWindowsShellService.cpp +++ b/application/basilisk/components/shell/nsWindowsShellService.cpp @@ -182,10 +182,10 @@ static SETTING gSettings[] = { // File Handler Class // ***keep this as the first entry because when aForAllTypes is not set below // it will skip over this check.*** - { MAKE_KEY_NAME1("BasiliskHTML", SOC), VAL_OPEN, OLD_VAL_OPEN }, + { MAKE_KEY_NAME1("CentauryHTML", SOC), VAL_OPEN, OLD_VAL_OPEN }, // Protocol Handler Class - for Vista and above - { MAKE_KEY_NAME1("BasiliskURL", SOC), VAL_OPEN, OLD_VAL_OPEN }, + { MAKE_KEY_NAME1("CentauryURL", SOC), VAL_OPEN, OLD_VAL_OPEN }, // Protocol Handlers { MAKE_KEY_NAME1("HTTP", DI), VAL_FILE_ICON }, @@ -199,10 +199,10 @@ static SETTING gSettings[] = { // are incorrect they are fixed without notifying the user. static SETTING gDDESettings[] = { // File Handler Class - { MAKE_KEY_NAME1("Software\\Classes\\BasiliskHTML", SOD) }, + { MAKE_KEY_NAME1("Software\\Classes\\CentauryHTML", SOD) }, // Protocol Handler Class - for Vista and above - { MAKE_KEY_NAME1("Software\\Classes\\BasiliskURL", SOD) }, + { MAKE_KEY_NAME1("Software\\Classes\\CentauryURL", SOD) }, // Protocol Handlers { MAKE_KEY_NAME1("Software\\Classes\\FTP", SOD) }, @@ -339,7 +339,7 @@ IsAARDefault(const RefPtr& pAAR, return false; } - LPCWSTR progID = isProtocol ? L"BasiliskURL" : L"BasiliskHTML"; + LPCWSTR progID = isProtocol ? L"CentauryURL" : L"CentauryHTML"; bool isDefault = !wcsicmp(registeredApp, progID); CoTaskMemFree(registeredApp); diff --git a/application/palemoon/components/shell/nsWindowsShellService.cpp b/application/palemoon/components/shell/nsWindowsShellService.cpp index 40cefe2c8..e1839e7d1 100644 --- a/application/palemoon/components/shell/nsWindowsShellService.cpp +++ b/application/palemoon/components/shell/nsWindowsShellService.cpp @@ -182,10 +182,10 @@ static SETTING gSettings[] = { // File Handler Class // ***keep this as the first entry because when aForAllTypes is not set below // it will skip over this check.*** - { MAKE_KEY_NAME1("PaleMoonHTML", SOC), VAL_OPEN, OLD_VAL_OPEN }, + { MAKE_KEY_NAME1("MypalHTML", SOC), VAL_OPEN, OLD_VAL_OPEN }, // Protocol Handler Class - for Vista and above - { MAKE_KEY_NAME1("PaleMoonURL", SOC), VAL_OPEN, OLD_VAL_OPEN }, + { MAKE_KEY_NAME1("MypalURL", SOC), VAL_OPEN, OLD_VAL_OPEN }, // Protocol Handlers { MAKE_KEY_NAME1("HTTP", DI), VAL_FILE_ICON }, @@ -199,10 +199,10 @@ static SETTING gSettings[] = { // are incorrect they are fixed without notifying the user. static SETTING gDDESettings[] = { // File Handler Class - { MAKE_KEY_NAME1("Software\\Classes\\PaleMoonHTML", SOD) }, + { MAKE_KEY_NAME1("Software\\Classes\\MypalHTML", SOD) }, // Protocol Handler Class - for Vista and above - { MAKE_KEY_NAME1("Software\\Classes\\PaleMoonURL", SOD) }, + { MAKE_KEY_NAME1("Software\\Classes\\MypalURL", SOD) }, // Protocol Handlers { MAKE_KEY_NAME1("Software\\Classes\\FTP", SOD) }, @@ -339,7 +339,7 @@ IsAARDefault(const RefPtr& pAAR, return false; } - LPCWSTR progID = isProtocol ? L"PaleMoonURL" : L"PaleMoonHTML"; + LPCWSTR progID = isProtocol ? L"MypalURL" : L"MypalHTML"; bool isDefault = !wcsicmp(registeredApp, progID); CoTaskMemFree(registeredApp); diff --git a/application/palemoon/installer/windows/nsis/installer.nsi b/application/palemoon/installer/windows/nsis/installer.nsi index 82a8a0d4d..b9434c267 100644 --- a/application/palemoon/installer/windows/nsis/installer.nsi +++ b/application/palemoon/installer/windows/nsis/installer.nsi @@ -385,9 +385,9 @@ Section "-Application" APP_IDX ; In Win8, the delegate execute handler picks up the value in PaleMoonURL and ; PaleMoonHTML to launch the desktop browser when it needs to. - ${AddDisabledDDEHandlerValues} "PaleMoonHTML" "$2" "$8,1" \ + ${AddDisabledDDEHandlerValues} "MypalHTML" "$2" "$8,1" \ "${AppRegName} Document" "" - ${AddDisabledDDEHandlerValues} "PaleMoonURL" "$2" "$8,1" "${AppRegName} URL" \ + ${AddDisabledDDEHandlerValues} "MypalURL" "$2" "$8,1" "${AppRegName} URL" \ "true" ; For pre win8, the following keys should only be set if we can write to HKLM.