Page MenuHome

Preferences autosaving in portable installation destroys preferences of non-portable installs
Closed, ArchivedPublic

Description

System Information
Operating system: Windows-10-10.0.17763 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.64

Blender Version
Broken: version: 2.80 (sub 72), branch: blender2.7, commit date: 2019-05-28 21:07, hash: rB9bae9b634ec6
Worked: Before preferences autosaving was introduced

Short description of error
When creating a portable blender install by creating a "config" folder inside 2.80 directory, preferences autosave writes into the global settings folder (C:\Users\%username%\AppData\Roaming\Blender Foundation\Blender\2.80) instead of the portable one. This just completely destroyed my whole Blender 2.8 setup, including key mapping, all the preferences, activated addons, their preferences, etc... It will take me quite a while to fix it. >:(

Exact steps for others to reproduce the error
1, Install latest 2.8 build and set up some preferences.
2, Copy the 2.8 folder, and inside it, in 2.80 folder, create "config" directory to make the installation portable
3, Launch the portable installation and change some preferences
4, Open the non-portable installation which uses global OS preferences, and notice they all have been overriden by the portable installation settings.

Result: Autosaved preferences in portable install are written inside global OS preferences, instead of portable installation preferences.

Expected: Autosaved preferences in portable build are saved within the portable build, and do not overwrite the global OS preferences of non-portable 2.8 installs.

Details

Type
Bug

Event Timeline

Brecht Van Lommel (brecht) triaged this task as Needs Information from User priority.

I can't reproduce this problem. For me it's saving to the portable install folder.

It's not clear to me what could be causing the bug, as the code for auto-saving and pressing the Save Preferences button manually appears to be the same. I guess some state could change right before Blender quits, but I can't see how it would affect portable install detection.

I can't reproduce this problem. For me it's saving to the portable install folder.
It's not clear to me what could be causing the bug, as the code for auto-saving and pressing the Save Preferences button manually appears to be the same. I guess some state could change right before Blender quits, but I can't see how it would affect portable install detection.

I will try to reproduce it again, but it will take me some time as I don't want to destroy my preferences again.

I am unable to reproduce it again. I may have accidentally launched Blender once without having created portable config directory first, so it may have been a mistake on my side. I guess this can be closed, at least until I manage to reproduce it again. Sorry.