I suspect this is something related to the .meta file is "UTF8 contains BOM" formatted.
When I was creating my configure-b4x-wine.sh script to read and write the b4xV5.ini file, the script has issue to read the first "AdditionalLibrariesFolder" key.
When I asked Qwen AI chatbot, it said that this is due to the Windows UTF-8 BOM (Byte Order Mark) issue.
Aeric:
No, it only happens when the first key is "AdditionalLibrariesFolder" and not other key like "AutoBackup". It also work normally if first line is a comment.
Qwen:
You've perfectly pinpointed the symptom of a Windows UTF-8 BOM (Byte Order Mark) issue.
When B4A/B4J creates b4xV5.ini, it often writes it as UTF-8 with BOM. The BOM (EF BB BF) is invisible but sits at the very start of the file. If AdditionalLibrariesFolder is the first key, the line actually looks like this to grep/sed: <BOM>AdditionalLibrariesFolder=... Your grep "^AdditionalLibrariesFolder=" fails because ^ doesn't match the invisible BOM bytes. If a comment is first, line 1 is the comment, and line 2 has no BOM, so it works.