Open Bug 1893666 Opened 2 months ago Updated 21 hours ago

Add new properties to nsToolkitProfile to support selectable profiles

Categories

(Toolkit :: Startup and Profile System, enhancement, P1)

enhancement

Tracking

()

People

(Reporter: jhirsch, Assigned: jhirsch)

References

(Blocks 5 open bugs)

Details

(Whiteboard: [fidefe-profile-management] )

Attachments

(2 files)

To support starting up into a selectable profile instead of the existing named profiles, add optional properties to nsToolkitProfile: the group DB path, a flag to show the new profile selector at startup, and a flag to make a profile the default profile. (Any other properties to add? Double check the docs.)

These will need to be written out to profiles.ini, so there may be changes needed in nsToolkitProfileService to map these properties to the profile entry in installs.ini.

Be sure to gate these changes on the build-time flag defined in bug 1893315.

Best reference doc is probably the profile selector architecture doc, https://docs.google.com/document/d/1PP4NjlOBmwNJP9emu1Bk5LBk_LcD284xMZZ8gG11-S0/edit#heading=h.rd74ekz7fx9v.

Type: defect → enhancement
Depends on: 1893315
Severity: -- → S2
Priority: -- → P2
Whiteboard: [fidefe-profile-management]
Assignee: nobody → jhirsch
Priority: P2 → P1

Still quite WIP but I'm out of time for the night and feedback would be
helpful.

  • Add support for a GroupDB key to the profiles.ini section for a
    profile.
  • Map the GroupDB key to a groupDatabasePath property on
    nsToolkitProfile (TODO find a better, more concise name).
  • Add a first simple test to verify that setting this on the profile
    instance gets serialized to profiles.ini as expected.

My main open questions are around relative descriptors and whether we
want to constrain the setter beyond just accepting an nsIFile pointer.
Some other C++ syntax questions called out as TODOs inline. Also some
printf() calls and comments to be removed before landing.

Attachment #9405437 - Attachment description: Bug 1893666 Part 2 - Add group database path to profiles.ini and nsToolkitProfile. r?mossop,niklas → Bug 1893666 Part 2 - Add profile group ID to profiles.ini and nsToolkitProfile. r?mossop!,niklas
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: