diff --git a/patches/0001-branding.patch b/patches/0001-branding.patch index de7b12f..4e965c5 100644 --- a/patches/0001-branding.patch +++ b/patches/0001-branding.patch @@ -1,13 +1,18 @@ diff --git a/browser/branding/unofficial/configure.sh b/browser/branding/unofficial/configure.sh -index edd3bd3e86e50..a919513ddae3a 100644 +index edd3bd3e86e50..0e496c732516c 100644 --- a/browser/branding/unofficial/configure.sh +++ b/browser/branding/unofficial/configure.sh -@@ -2,4 +2,4 @@ +@@ -2,4 +2,9 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -MOZ_APP_DISPLAYNAME=Nightly ++MOZ_APP_NAME=snowleopard ++MOZ_APP_BASENAME=Snowleopard ++MOZ_APP_PROFILE=Snowleopard ++MOZ_APP_VENDOR=Snowleopard +MOZ_APP_DISPLAYNAME=Snowleopard ++MOZ_APP_REMOTINGNAME=Snowleopard diff --git a/browser/branding/unofficial/locales/en-US/brand.ftl b/browser/branding/unofficial/locales/en-US/brand.ftl index 5eaea9a7c4e87..917ac943756d6 100644 --- a/browser/branding/unofficial/locales/en-US/brand.ftl diff --git a/patches/0011-app-dirs.patch b/patches/0011-app-dirs.patch new file mode 100644 index 0000000..ac5ae80 --- /dev/null +++ b/patches/0011-app-dirs.patch @@ -0,0 +1,74 @@ +--- a/toolkit/xre/nsXREDirProvider.cpp ++++ b/toolkit/xre/nsXREDirProvider.cpp +@@ -300,16 +300,16 @@ static nsresult GetSystemParentDirectory(nsIFile** aFile) { + rv = GetOSXFolderType(kOnSystemDisk, kApplicationSupportFolderType, + getter_AddRefs(localDir)); + if (NS_SUCCEEDED(rv)) { +- rv = localDir->AppendNative("Mozilla"_ns); ++ rv = localDir->AppendNative("Snowleopard"_ns); + } + # else + constexpr auto dirname = + # ifdef HAVE_USR_LIB64_DIR +- "/usr/lib64/mozilla"_ns ++ "/usr/lib64/snowleopard"_ns + # elif defined(__OpenBSD__) || defined(__FreeBSD__) +- "/usr/local/lib/mozilla"_ns ++ "/usr/local/lib/snowleopard"_ns + # else +- "/usr/lib/mozilla"_ns ++ "/usr/lib/snowleopard"_ns + # endif + ; + rv = NS_NewNativeLocalFile(dirname, false, getter_AddRefs(localDir)); +@@ -371,9 +371,9 @@ nsXREDirProvider::GetFile(const char* aProperty, bool* aPersistent, + rv = GetUserDataDirectoryHome(getter_AddRefs(file), false); + NS_ENSURE_SUCCESS(rv, rv); + # if defined(XP_MACOSX) +- rv = file->AppendNative("Mozilla"_ns); ++ rv = file->AppendNative("Snowleopard"_ns); + # else // defined(XP_MACOSX) +- rv = file->AppendNative(".mozilla"_ns); ++ rv = file->AppendNative(".snowleopard"_ns); + # endif // defined(XP_MACOSX) + } + #endif // defined(XP_UNIX) || defined(XP_MACOSX) +@@ -411,9 +411,9 @@ nsXREDirProvider::GetFile(const char* aProperty, bool* aPersistent, + else if (!strcmp(aProperty, XRE_SYS_SHARE_EXTENSION_PARENT_DIR)) { + # ifdef ENABLE_SYSTEM_EXTENSION_DIRS + # if defined(__OpenBSD__) || defined(__FreeBSD__) +- static const char* const sysLExtDir = "/usr/local/share/mozilla/extensions"; ++ static const char* const sysLExtDir = "/usr/local/share/snowleopard/extensions"; + # else +- static const char* const sysLExtDir = "/usr/share/mozilla/extensions"; ++ static const char* const sysLExtDir = "/usr/share/snowleopard/extensions"; + # endif + rv = NS_NewNativeLocalFile(nsDependentCString(sysLExtDir), false, + getter_AddRefs(file)); +@@ -1114,7 +1114,7 @@ nsresult nsXREDirProvider::GetUpdateRootDir(nsIFile** aResult, + nsDependentCString(hasVendor ? GetAppVendor() : GetAppName())))) { + return NS_ERROR_FAILURE; + } +- } else if (NS_FAILED(localDir->AppendNative("Mozilla"_ns))) { ++ } else if (NS_FAILED(localDir->AppendNative("Snowleopard"_ns))) { + return NS_ERROR_FAILURE; + } + +@@ -1363,7 +1363,7 @@ nsresult nsXREDirProvider::AppendSysUserExtensionPath(nsIFile* aFile) { + + #if defined(XP_MACOSX) || defined(XP_WIN) + +- static const char* const sXR = "Mozilla"; ++ static const char* const sXR = "Snowleopard"; + rv = aFile->AppendNative(nsDependentCString(sXR)); + NS_ENSURE_SUCCESS(rv, rv); + +@@ -1373,7 +1373,7 @@ nsresult nsXREDirProvider::AppendSysUserExtensionPath(nsIFile* aFile) { + + #elif defined(XP_UNIX) + +- static const char* const sXR = ".mozilla"; ++ static const char* const sXR = ".snowleopard"; + rv = aFile->AppendNative(nsDependentCString(sXR)); + NS_ENSURE_SUCCESS(rv, rv); +