Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/HulahopDirectoryProvider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/HulahopDirectoryProvider.cpp')
-rw-r--r--src/HulahopDirectoryProvider.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/HulahopDirectoryProvider.cpp b/src/HulahopDirectoryProvider.cpp
index fb21d69..6fc438c 100644
--- a/src/HulahopDirectoryProvider.cpp
+++ b/src/HulahopDirectoryProvider.cpp
@@ -51,7 +51,8 @@ HulahopDirectoryProvider::GetFile(const char *aKey,
{
nsresult rv;
- if (!strcmp(aKey, NS_APP_USER_PROFILE_50_DIR) && mProfilePath) {
+ if ((!strcmp(aKey, NS_APP_USER_PROFILE_50_DIR) ||
+ !strcmp(aKey, NS_APP_USER_PROFILE_LOCAL_50_DIR)) && mProfilePath) {
NS_ADDREF(*aResult = mProfilePath);
return NS_OK;
}
@@ -67,7 +68,19 @@ HulahopDirectoryProvider::GetFile(const char *aKey,
NS_ADDREF(*aResult = file);
return NS_OK;
}
-
+
+ if (!strcmp(aKey, NS_XPCOM_XPTI_REGISTRY_FILE) && mProfilePath) {
+ nsCOMPtr<nsIFile> file;
+ rv = mProfilePath->Clone(getter_AddRefs(file));
+ NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
+
+ rv = file->AppendNative(nsCString("xpti.dat"));
+ NS_ENSURE_SUCCESS(rv, NS_ERROR_FAILURE);
+
+ NS_ADDREF(*aResult = file);
+ return NS_OK;
+ }
+
if (!strcmp(aKey, NS_APP_PREF_DEFAULTS_50_DIR)) {
nsCOMPtr<nsILocalFile> dataDir;
NS_NewNativeLocalFile(nsCString(DATA_DIR),