This won't work in all cases though: for newly created profiles it will, but for profiles that were created before version 67 (see https://support.mozilla.org/gl/questions/1264072), they will still use the old naming convention, and therefore the presence and value of a "Default" key needs to be checked.
For reference this is what my profiles.ini looks like (where the profile being used by default is "fxbpdn4q.default"):
Thanks for the patch Séb.
This won't work in all cases though: for newly created profiles it will, but for profiles that were created before version 67 (see https:/ /support. mozilla. org/gl/ questions/ 1264072), they will still use the old naming convention, and therefore the presence and value of a "Default" key needs to be checked.
For reference this is what my profiles.ini looks like (where the profile being used by default is "fxbpdn4q. default" ):
osomon@bribon:~$ cat .thunderbird/ profiles. ini 6A96C2F86] wa14rqag. default- beta
[Install109C8E8
Default=
Locked=1
[Profile1] default- beta
Name=default-beta
IsRelative=1
Path=wa14rqag.
[Profile0] default
Name=default
IsRelative=1
Path=fxbpdn4q.
Default=1
[General] ofile=1
StartWithLastPr
Version=2
[InstallABD9122 D5734A109] 0t0vcddd. default- release
Default=
Locked=1
[InstallFDC34C9 F024745EB] fxbpdn4q. default
Default=
[Profile2] release default- release
Name=default-
IsRelative=1
Path=0t0vcddd.