Hakan It appears to me that we have different approaches to making a portable configuration. My approach has been to have an OpenCPN program on a flash drive that could be inserted into any Windows computer and run the program from that flash drive. The portable folder would contain the charts, Layers, plugins, etc. necessary for a stand-alone process. In addition that same portable folder could be copied to a computer and run properly if so desired, such as for a split-screen display (and this is where the 'problem' I discovered exists).
I have now discovered the solution to the problem I thought existed which, as it turns out, only exists in certain circumstances.
Since I create a new portable version on my computer, normally the
Desktop, I use a folder to contain the necessary folders and files which I would transfer to a flash drive. When I made a portable version of 4.8.2 and ran it from the
Desktop I found that the CHRTLIST.DAT file (updated when a database rebuild is made) was not updated within the portable folder but at the host level, i.e. on the Desktop. See first image. And as an aside I have a specific way of naming the .bat file. See second image.
What I now find is that if the portable folder in situ is copied to a flash drive the CHRTLIST.DAT file is again created at the host level, i.e. on the flash drive with the portable folder. Subsequent runs of the program read this file and the database structure is retained. See third image. But the CHRTLIST.DAT file within the portable folder is not updated.
However, if just the contents of the portable folder are on the flash drive then the CHRTLIST.DAT file gets updated properly. See fourth image.
Either way (with or without the folder) on the flash drive the program will run. But with the folder it just isn't as tidy.
Sorry to have stirred this up ... I'll be revising my guide to describe this until it will hopefully be fixed in the next stable release of
O.
Terry