2021-11-20 01:31:09 -05:00
|
|
|
--- a/toolkit/xre/nsXREDirProvider.cpp
|
|
|
|
+++ b/toolkit/xre/nsXREDirProvider.cpp
|
2023-03-15 06:05:25 -05:00
|
|
|
@@ -300,16 +300,16 @@ static nsresult GetSystemParentDirectory(nsIFile** aFile) {
|
2021-11-20 01:31:09 -05:00
|
|
|
rv = GetOSXFolderType(kOnSystemDisk, kApplicationSupportFolderType,
|
|
|
|
getter_AddRefs(localDir));
|
|
|
|
if (NS_SUCCEEDED(rv)) {
|
|
|
|
- rv = localDir->AppendNative("Mozilla"_ns);
|
|
|
|
+ rv = localDir->AppendNative("LibreWolf"_ns);
|
|
|
|
}
|
|
|
|
# else
|
|
|
|
constexpr auto dirname =
|
|
|
|
# ifdef HAVE_USR_LIB64_DIR
|
|
|
|
- "/usr/lib64/mozilla"_ns
|
|
|
|
+ "/usr/lib64/librewolf"_ns
|
|
|
|
# elif defined(__OpenBSD__) || defined(__FreeBSD__)
|
|
|
|
- "/usr/local/lib/mozilla"_ns
|
|
|
|
+ "/usr/local/lib/librewolf"_ns
|
|
|
|
# else
|
|
|
|
- "/usr/lib/mozilla"_ns
|
|
|
|
+ "/usr/lib/librewolf"_ns
|
|
|
|
# endif
|
|
|
|
;
|
|
|
|
rv = NS_NewNativeLocalFile(dirname, false, getter_AddRefs(localDir));
|
2023-03-15 06:05:25 -05:00
|
|
|
@@ -371,9 +371,9 @@ nsXREDirProvider::GetFile(const char* aProperty, bool* aPersistent,
|
|
|
|
rv = GetUserDataDirectoryHome(getter_AddRefs(file), false);
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
2021-11-20 01:31:09 -05:00
|
|
|
# if defined(XP_MACOSX)
|
2023-03-15 06:05:25 -05:00
|
|
|
- rv = file->AppendNative("Mozilla"_ns);
|
|
|
|
+ rv = file->AppendNative("LibreWolf"_ns);
|
|
|
|
# else // defined(XP_MACOSX)
|
|
|
|
- rv = file->AppendNative(".mozilla"_ns);
|
|
|
|
+ rv = file->AppendNative(".librewolf"_ns);
|
|
|
|
# endif // defined(XP_MACOSX)
|
|
|
|
}
|
|
|
|
#endif // defined(XP_UNIX) || defined(XP_MACOSX)
|
|
|
|
@@ -411,9 +411,9 @@ nsXREDirProvider::GetFile(const char* aProperty, bool* aPersistent,
|
2021-11-20 01:31:09 -05:00
|
|
|
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/librewolf/extensions";
|
|
|
|
# else
|
|
|
|
- static const char* const sysLExtDir = "/usr/share/mozilla/extensions";
|
|
|
|
+ static const char* const sysLExtDir = "/usr/share/librewolf/extensions";
|
|
|
|
# endif
|
2023-03-15 06:05:25 -05:00
|
|
|
rv = NS_NewNativeLocalFile(nsDependentCString(sysLExtDir), false,
|
|
|
|
getter_AddRefs(file));
|
|
|
|
@@ -1114,7 +1114,7 @@ nsresult nsXREDirProvider::GetUpdateRootDir(nsIFile** aResult,
|
2021-11-20 01:31:09 -05:00
|
|
|
nsDependentCString(hasVendor ? GetAppVendor() : GetAppName())))) {
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
}
|
|
|
|
- } else if (NS_FAILED(localDir->AppendNative("Mozilla"_ns))) {
|
|
|
|
+ } else if (NS_FAILED(localDir->AppendNative("LibreWolf"_ns))) {
|
|
|
|
return NS_ERROR_FAILURE;
|
|
|
|
}
|
|
|
|
|
2023-03-15 06:05:25 -05:00
|
|
|
@@ -1363,7 +1363,7 @@ nsresult nsXREDirProvider::AppendSysUserExtensionPath(nsIFile* aFile) {
|
2021-11-20 01:31:09 -05:00
|
|
|
|
|
|
|
#if defined(XP_MACOSX) || defined(XP_WIN)
|
|
|
|
|
|
|
|
- static const char* const sXR = "Mozilla";
|
|
|
|
+ static const char* const sXR = "LibreWolf";
|
|
|
|
rv = aFile->AppendNative(nsDependentCString(sXR));
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
|
2023-03-15 06:05:25 -05:00
|
|
|
@@ -1373,7 +1373,7 @@ nsresult nsXREDirProvider::AppendSysUserExtensionPath(nsIFile* aFile) {
|
2021-11-20 01:31:09 -05:00
|
|
|
|
|
|
|
#elif defined(XP_UNIX)
|
|
|
|
|
|
|
|
- static const char* const sXR = ".mozilla";
|
|
|
|
+ static const char* const sXR = ".librewolf";
|
|
|
|
rv = aFile->AppendNative(nsDependentCString(sXR));
|
|
|
|
NS_ENSURE_SUCCESS(rv, rv);
|
|
|
|
|