[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option
From: |
Giuseppe Scrivano |
Subject: |
Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option |
Date: |
Sat, 01 Dec 2007 21:38:22 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) |
I modified the patch offered on bugzilla.mozilla.org to match our
needs, it creates and uses the ~/.gnuzilla/icecat directory to store
profiles data.
It is not completely clean gAppData->name should be "icecat" and not
"firefox" without hardly-code the value we want, but at moment it is
acceptable to fix this problem.
Giuseppe
--- ./toolkit/xre/nsXREDirProvider.cpp 2007-05-08 21:25:29.000000000 +0200
+++ ./toolkit/xre/nsXREDirProvider.cpp 2007-12-01 21:19:32.000000000 +0100
@@ -914,24 +914,17 @@
NS_ENSURE_SUCCESS(rv, rv);
char* appNameFolder = nsnull;
- char profileFolderName[MAXPATHLEN] = ".";
-
- // Offset 1 for the outermost folder to make it hidden (i.e. using the ".")
- char* writing = profileFolderName + 1;
- if (gAppData->vendor) {
- GetProfileFolderName(writing, gAppData->vendor);
-
- rv = localDir->AppendNative(nsDependentCString(profileFolderName));
- NS_ENSURE_SUCCESS(rv, rv);
+ char profileFolderName[MAXPATHLEN] = MOZ_USER_DIR;
+
+ rv = localDir->AppendNative(nsDependentCString(profileFolderName));
+ NS_ENSURE_SUCCESS(rv, rv);
- char temp[MAXPATHLEN];
- GetProfileFolderName(temp, gAppData->name);
- appNameFolder = temp;
- }
- else {
- GetProfileFolderName(writing, gAppData->name);
- appNameFolder = profileFolderName;
- }
+ //XXX: Dirty way to specify icecat.
+ //char temp[MAXPATHLEN];
+ //GetProfileFolderName(temp, gAppData->name);
+ //appNameFolder = temp;
+ appNameFolder = "icecat";
+
rv = localDir->AppendNative(nsDependentCString(appNameFolder));
NS_ENSURE_SUCCESS(rv, rv);
#else
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, inconnu, 2007/12/01
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, inconnu, 2007/12/01
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, Giuseppe Scrivano, 2007/12/01
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option,
Giuseppe Scrivano <=
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/02
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, Giuseppe Scrivano, 2007/12/03
- GNU IceCat 2.0.0.11-g1, Giuseppe Scrivano, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, Giuseppe Scrivano, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, Giuseppe Scrivano, 2007/12/04
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/04
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, rmyster, 2007/12/03
- Re: GNU IceCat 2.0.0.10-g1 and use with the alternate profile option, inconnu, 2007/12/04