Martin Kutschker <[EMAIL PROTECTED]> schrieb in im Newsbeitrag:
9opjl5$[EMAIL PROTECTED]
> Hi!
>
> I tried to add a file into the <mozilla>/defaults/profile directory. I
used
> getFolder("Defaults", "profile") as mentioned in the XPInstall
> documentation, but the method did not return a valid directory.

The documentation is either old or plainy wrong. In
http://lxr.mozilla.org/mozilla/source/xpinstall/src/nsInstallFolder.cpp I
found no trace of the "Defaults" directory:

 51 struct DirectoryTable DirectoryTable[] =
 52 {
 53     {"Plugins",             100 },
 54     {"Program",             101 },
 55     {"Communicator",        101 }, // "Communicator" is deprecated
 56
 57     {"Temporary",           104 },
 58
 59     {"Profile",             106 },
 60     {"Current User",        106 }, // "Current User" is deprecated
 61     {"Preferences",         107 },
 62     {"OS Drive",            108 },
 63     {"file:///",            109 },
 64
 65     {"Components",          110 },
 66     {"Chrome",              111 },
 67
 68     {"Win System",          200 },
 69     {"Windows",             201 },
 70
 71     {"Mac System",          300 },
 72     {"Mac Desktop",         301 },
 73     {"Mac Trash",           302 },
 74     {"Mac Startup",         303 },
 75     {"Mac Shutdown",        304 },
 76     {"Mac Apple Menu",      305 },
 77     {"Mac Control Panel",   306 },
 78     {"Mac Extension",       307 },
 79     {"Mac Fonts",           308 },
 80     {"Mac Preferences",     309 },
 81     {"Mac Documents",       310 },
 82
 83     {"Unix Local",          400 },
 84     {"Unix Lib",            401 },
 85
 86     {"",                    -1  }

Is getFolder("Program","defaults/profile") a correct call? If not I'll file
a bug on this.

Masi


Reply via email to