mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-02 12:37:31 +09:00
Hardcoded generic branding
This commit is contained in:
parent
0f85813996
commit
76fa1af460
42 changed files with 646 additions and 252 deletions
|
|
@ -101,18 +101,18 @@ OpenKeyForReading(HKEY aKeyRoot, const nsAString& aKeyName, HKEY* aKey)
|
|||
// .htm .html .shtml .xht .xhtml
|
||||
// are mapped like so:
|
||||
//
|
||||
// HKCU\SOFTWARE\Classes\.<ext>\ (default) REG_SZ PaleMoonHTML
|
||||
// HKCU\SOFTWARE\Classes\.<ext>\ (default) REG_SZ NewMoonHTML
|
||||
//
|
||||
// as aliases to the class:
|
||||
//
|
||||
// HKCU\SOFTWARE\Classes\PaleMoonHTML\
|
||||
// HKCU\SOFTWARE\Classes\NewMoonHTML\
|
||||
// DefaultIcon (default) REG_SZ <apppath>,1
|
||||
// shell\open\command (default) REG_SZ <apppath> -osint -url "%1"
|
||||
// shell\open\ddeexec (default) REG_SZ <empty string>
|
||||
//
|
||||
// - Windows Vista and above Protocol Handler
|
||||
//
|
||||
// HKCU\SOFTWARE\Classes\PaleMoonURL\ (default) REG_SZ <appname> URL
|
||||
// HKCU\SOFTWARE\Classes\NewMoonURL\ (default) REG_SZ <appname> URL
|
||||
// EditFlags REG_DWORD 2
|
||||
// FriendlyTypeName REG_SZ <appname> URL
|
||||
// DefaultIcon (default) REG_SZ <apppath>,1
|
||||
|
|
@ -156,7 +156,8 @@ typedef struct {
|
|||
const char* oldValueData;
|
||||
} SETTING;
|
||||
|
||||
#define APP_REG_NAME L"Pale Moon"
|
||||
// Find a way to unhardcode this
|
||||
#define APP_REG_NAME L"New Moon"
|
||||
#define VAL_FILE_ICON "%APPPATH%,1"
|
||||
#define VAL_OPEN "\"%APPPATH%\" -osint -url \"%1\""
|
||||
#define OLD_VAL_OPEN "\"%APPPATH%\" -requestPending -osint -url \"%1\""
|
||||
|
|
@ -182,10 +183,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("NewMoonHTML", 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("NewMoonURL", SOC), VAL_OPEN, OLD_VAL_OPEN },
|
||||
|
||||
// Protocol Handlers
|
||||
{ MAKE_KEY_NAME1("HTTP", DI), VAL_FILE_ICON },
|
||||
|
|
@ -199,10 +200,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\\NewMoonHTML", SOD) },
|
||||
|
||||
// Protocol Handler Class - for Vista and above
|
||||
{ MAKE_KEY_NAME1("Software\\Classes\\PaleMoonURL", SOD) },
|
||||
{ MAKE_KEY_NAME1("Software\\Classes\\NewMoonURL", SOD) },
|
||||
|
||||
// Protocol Handlers
|
||||
{ MAKE_KEY_NAME1("Software\\Classes\\FTP", SOD) },
|
||||
|
|
@ -339,7 +340,7 @@ IsAARDefault(const RefPtr<IApplicationAssociationRegistration>& pAAR,
|
|||
return false;
|
||||
}
|
||||
|
||||
LPCWSTR progID = isProtocol ? L"PaleMoonURL" : L"PaleMoonHTML";
|
||||
LPCWSTR progID = isProtocol ? L"NewMoonURL" : L"NewMoonHTML";
|
||||
bool isDefault = !wcsicmp(registeredApp, progID);
|
||||
CoTaskMemFree(registeredApp);
|
||||
|
||||
|
|
@ -371,8 +372,8 @@ IsDefaultBrowserWin8(bool aCheckAllTypes, bool* aIsDefaultBrowser)
|
|||
|
||||
/*
|
||||
* Query's the AAR for the default status.
|
||||
* This only checks for PaleMoonURL and if aCheckAllTypes is set, then
|
||||
* it also checks for PaleMoonHTML. Note that those ProgIDs are shared
|
||||
* This only checks for NewMoonURL and if aCheckAllTypes is set, then
|
||||
* it also checks for NewMoonHTML. Note that those ProgIDs are shared
|
||||
* by all PaleMoon browsers.
|
||||
*/
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue