Re: Preferences locking
jehan procaccia <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.prefs |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Jay Garcia wrote:
> On 04/27/2003 11:08 AM, Daniel Wang wrote:
>
> --- Original Message ---
>
>
>
>>I tried following http://www.alain.knaff.lu/howto/MozillaCustomization/
>>but couldn't get preferences locking to work.
>>
>>I have pref("general.config.filename", "mozilla.cfg"); in all.js
>>I have mozilla.cfg, converted using the above-mentioned page's utility
>>At start up I got "Failed to read the configuration file. Please contact
>>your system administrator"
>>
>>Anyone knows what the problem may be?
>>
>
>
> Just a longggg shot .. Did your prefs file somehow get marked as READ ONLY ?
>
>
Any error in the javascript code you put in your original mozilla.cfg
(mozilla.txt ?) file will result in such error.
for Example, in order to debug I used this:
var env_mozdebug= getenv("MOZILLA_DEBUG");
var env_user = getenv("USER");
if (env_mozdebug) {
displayError("debug mozilla.cfg", "\n user:" + env_user + "\n");
}
in shell I set:
$ export MOZILLA_DEBUG=1
Once I forgot a + (string concatenation) , then I had the error you
mentionned . that's just a hint ..., hope it helps.