MozillaZine

Explanation of Locked in profiles.ini & installs.ini ?

User Help for Mozilla Thunderbird
bazzaman
 
Posts: 2
Joined: November 30th, 2016, 3:25 am

Post Posted November 6th, 2019, 10:47 am

I've been using Thunderbird (always with just a single profile) for many years and had no problem moving the profile location and moving between machines (all Windows OSs) and editing profiles.ini as necessary.

I've just installed 68.2.1 (x64) under Win10 on a new laptop. As I've generally done before I did the Thunderbird install, then edited the profiles.ini that had been created and put the profile in my desired location (on another partition). In doing so I notiiced a few changes to profiles.ini and also the new installs.ini.

Now the only thing I'm not clear on (and I cannot find any documentation on) is the Locked=1 that appears in profiles.ini and installs.ini. Please can some explain the purpose and usage of Locked?

Everything seems to work fine with or without Locked=1, I'd just like to fully understand the purpose of Locked.

Many thanks.

morat
 
Posts: 3438
Joined: February 3rd, 2009, 6:29 pm

Post Posted November 6th, 2019, 7:12 pm

Here is the file that sets the "Locked" string.

nsToolkitProfileService.cpp
http://searchfox.org/mozilla-release/source/toolkit/profile/nsToolkitProfileService.cpp

Read the comments.

bazzaman
 
Posts: 2
Joined: November 30th, 2016, 3:25 am

Post Posted November 7th, 2019, 2:55 am

Thanks for that.

What I'm getting from that is that as I only have a single profile and a single install of Thunderbird (and don't ever expect this to change), Locked makes no material difference. So I could either leave it out or include as Locked=1 (or even Locked=0 ?). Is that right (for both profiles.ini and installs.ini)?

I should also have asked about Version in profiles.ini. Although I can see this version is used in the insToolkitProfileService.cpp source code linked to, I am unable to deduce when and why this would be set. Any chance of a straightforward explanation please?

morat
 
Posts: 3438
Joined: February 3rd, 2009, 6:29 pm

Post Posted November 7th, 2019, 8:21 am

There is a different init procedure for older versions.

Similar thead
http://support.mozilla.org/questions/1262122

Recovering important data from an old profile
http://support.mozilla.org/kb/recoverin ... ld-profile

Dedicated profiles per installation
http://support.mozilla.org/kb/dedicated ... stallation

Moving to a profile per install architecture
http://blog.nightly.mozilla.org/2019/01 ... hitecture/

Return to Thunderbird Support


Who is online

Users browsing this forum: Bing [Bot] and 12 guests