Maniphest T67097

Don't use startup.blend for reading preferences
Closed, ResolvedDESIGN

Assigned To
Campbell Barton (campbellbarton)
Authored By
Campbell Barton (campbellbarton)
Jul 17 2019, 1:14 AM
Tags
  • BF Blender
Subscribers
Campbell Barton (campbellbarton)

Description

Currently the user preferences from the startup.blend are used when there is no userpref.blend.

This can be confusing if you manually delete preferences and restart blender with preferences at the time of saving the startup (instead of using factory settings).

The tool-tip for saving preferences reads:

Save preferences separately, overrides startup file preferences

This was useful for some months after moving preferences out of startup.blend, however I don't think it makes sense anymore.

Also I doubt many users are even aware of this.

Motivation

  • Simplify logic for users, tooltips can be more straightforward, no need to document odd behavior.
  • Simplify logic for developers (see: wm_homefile_read, it's getting over complicated).

Proposal

  • Don't use preferences from startup.blend.
  • Add userpref.blend to source, so updates to the startup.blend are possible.

    ... Possible alternative could be to initialize the UserDef struct directly, however thats a bigger task.

Revisions and Commits

Event Timeline

Campbell Barton (campbellbarton) lowered the priority of this task from 90 to Low.Jul 17 2019, 1:14 AM
Campbell Barton (campbellbarton) created this task.
Campbell Barton (campbellbarton) mentioned this in T63728: Data, Assets & I/O Module.
Campbell Barton (campbellbarton) updated the task description.
Campbell Barton (campbellbarton) updated the task description.
Campbell Barton (campbellbarton) updated the task description.Jul 18 2019, 11:27 AM
Campbell Barton (campbellbarton) updated the task description.
Campbell Barton (campbellbarton) updated the task description.Jul 18 2019, 11:43 AM
Campbell Barton (campbellbarton) updated the task description.Jul 30 2019, 7:16 AM
Campbell Barton (campbellbarton) added a revision: D5370: Preferences: disable loading from the startup.blend.
Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Aug 30 2019, 8:40 AM
Campbell Barton (campbellbarton) claimed this task.