Closed Bug 4788 Opened 26 years ago Closed 26 years ago

Prefs file not created by default

Categories

(Core :: Preferences: Backend, defect, P1)

PowerPC
Mac System 8.5
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: mcmullen, Assigned: mcmullen)

Details

In the M4 build, there is a preferences window that has some limited functionality. To make it work currently, you have to add a prefs file manually to your file system. It would be better if this file could be created automatically, if it is absent.
Status: NEW → ASSIGNED
Priority: P3 → P1
Target Milestone: M4
Marking P1, M4 as requested by Don. Accepting bug.
Assignee: don → mcmullen
Status: ASSIGNED → NEW
Component: Apprunner → libPref
Re-assinged to mcmullen@netscape.com and changed component to libPref.
QA Contact: 3853 → 3819
Status: NEW → ASSIGNED
Accepting bug. I also have a fix in my tree. Request permission to check in.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Don gave me permission. Fix checked in. To see that this works, you will have to wait until the frames bug #4795 is fixed. When that bug is fixed (so that you can see the list of categories on the left and the panel on the right), you can begin verifying this bug. Now, for this bug, the symptom was that, unless the file prefs50.js exists in the same directory as the executable ( on windows and unix) or in preferences:Netscape {option-f}: (on Macintosh), preferences would not be saved between sessions. Now, the prefs file is created automatically if none exists. If you check a box, click "OK" and bring up the window again, the box will now still be checked. You can also look in the prefs50.js file and see that the preference has been written out to the file.
Don gave me permission. Fix checked in. To see that this works, you will have to wait until the frames bug #4795 is fixed. When that bug is fixed (so that you can see the list of categories on the left and the panel on the right), you can begin verifying this bug. Now, for this bug, the symptom was that, unless the file prefs50.js exists in the same directory as the executable ( on windows and unix) or in preferences:Netscape {option-f}: (on Macintosh), preferences would not be saved between sessions. Now, the prefs file is created automatically if none exists. If you check a box, click "OK" and bring up the window again, the box will now still be checked. You can also look in the prefs50.js file and see that the preference has been written out to the file.
verified on windows95, will check other platforms later
Works fine on Unix, though the prefs file doesn't get populated with the 4 start-up prefs like the windows prefs file does. Also, shouldn't the prefs file just get created on launch if it doesn't exist? Waiting to verify on Mac til I have a build that doesn't crash when opening the prefs window.
I have the fix for 4997, and am awaiting permission to check it in. In M5, this is all going to take a big leap forward.
Status: RESOLVED → VERIFIED
verified on 4/26 builds that an empty prefs50.js is created the first time you run on all platforms. That file is found in: ~/.mozilla on Linux c:\program files\netscape\users50\default on Windows Documents\Mozilla\Users50\Default on Macintosh
Moving all libPref component bugs to new Preferences: Backend component. libPref component will be deleted.
Component: libPref → Preferences: Backend
You need to log in before you can comment on or make changes to this bug.