Application Template: custom useprefs are not read/written correctly #65767

Closed
opened 2019-06-12 23:22:35 +02:00 by Félix · 5 comments

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: 6529d20d79
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: Example_Template.zip
  • 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:

...\2.80\config\Example_Template\userpref.blend

  • 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.

**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: `6529d20d79` 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: [Example_Template.zip](https://archive.blender.org/developer/F7100741/Example_Template.zip) - 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: > ...\2.80\config\Example_Template\userpref.blend - 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.
Author

Added subscriber: @Miadim

Added subscriber: @Miadim
Campbell Barton was assigned by Sebastian Parborg 2019-06-19 11:40:44 +02:00

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

https://docs.blender.org/manual/en/dev/advanced/app_templates.html#details

Does this cause any user visible problems?

This isn't a bug, only some settings are stored in the application templates, so both preferences need to be written. https://docs.blender.org/manual/en/dev/advanced/app_templates.html#details Does this cause any user visible problems?
Author

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.
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.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'

Fixed the error in keymap not being loaded d24300da5f

Best report individual errors separately.

Fixed the error in keymap not being loaded d24300da5f Best report individual errors separately.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#65767
No description provided.