Page MenuHome

Application Template: custom useprefs are not read/written correctly
Closed, ArchivedPublic


System Information
Operating system: Windows-10-10.0.16299 64 Bits
Graphics card: GeForce GTX 670/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 399.07

Blender Version
Broken: version: 2.80 (sub 74), branch: blender2.7, commit date: 2019-06-11 23:43, hash: rB6529d20d79a5
Worked: (optional)

Short description of error
For an Application Template which provides a startup.blend and a userpref.blend:

  • At opening: The main preferences are read.
  • At saving: The main preferences and the application template preferences are written.

Exact steps for others to reproduce the error

  • Install the application template:
  • In SplashScreen choose Example Template
  • Open the console, you can read:

Read prefs: C:\Users\Name\AppData\Roaming\Blender Foundation\Blender\2.80\config\userpref.blend

It's wrong, the path must be:


  • Open User preferences, change something, save preferences. In the console:

Writing userprefs: 'C:\Users\Name\AppData\Roaming\Blender Foundation\Blender\2.80\config\userpref.blend' ok
Writing userprefs app-template: 'C:\Users\Name\AppData\Roaming\Blender Foundation\Blender\2.80\config\Example_Template\userpref.blend' ok

It writes both main userpref and the app-template's. It must write only the app-template's.



Event Timeline

Sebastian Parborg (zeddb) triaged this task as Waiting for Developer to Reproduce priority.
Campbell Barton (campbellbarton) lowered the priority of this task from Waiting for Developer to Reproduce to Needs Information from User.Jul 5 2019, 10:12 AM

This isn't a bug, only some settings are stored in the application templates, so both preferences need to be written.

Does this cause any user visible problems?

While I'm running my tests I don't figure anything like the problems I've seen before, maybe they have been fixed since.

I just figure some things :

  • The keymap layout is not saved if I restart Blender. (If I create a "test" custom keymap in my app template, it won't be reloaded at startup)
  • In my application template, if I enable an addon and load another app template and then go back in my first app template, it doesn't save it, then I loose my settings. Maybe it's another issue I should open.
Bastien Montagne (mont29) raised the priority of this task from Needs Information from User to Waiting for Developer to Reproduce.Tue, Jul 23, 3:54 PM

Fixed the error in keymap not being loaded rBd24300da5ff3f381023e2028c5e4b91cccb5ae95

Best report individual errors separately.