Article View: news.software.readers
Article #265533Re: DIALOG settings.ini identity syntax section locations
From: Bernd Rose
Date: Sat, 30 Apr 2022 07:33
Date: Sat, 30 Apr 2022 07:33
70 lines
4420 bytes
4420 bytes
On Sat, 30th Apr 2022 01:16:15 +0200, wasbit wrote: > I have a tested sequence to repopulate the setup when Dialog gets > corrupted If I understand correctly, you recreate everything from scratch? (Instead of restoring a current backup.) I'd rather suggest to keep a full backup of the Dialog folder and its subfolders (with the exception of "data") and replace it, whenever a substantial change in settings (like a new or altered identity) occurred. The backup must only be created, when Dialog is not running, of course. For the data folder, keep the backups (at least the latest) after running CompactDatabase. Alternatively, you can do a full backup by copying it at any time. (Again: Dialog not running, of course.) *Never* mix two different states of the data folder!! You'd break the database this way, for sure. After setup and/or database corruption, you'd get back to the latest saved state quite easily. (Without any manual pre-configuration steps, like setting up dummy-identities inside the GUI. > As the last step of repopulating Dialog if I create an equal number of > dummy identities inside the Dialog GUI This step should have also created the correct setting of IdentitiesCount inside the [General] section. > then I close Dialog and swap out the separate text files [BR: containing > the backed up identity settings] into the settings.ini file with each > identity in the exact strange places that they end up in the > settings.ini files, then it always works. Please note, that reference of an identity (to its folder and so on) in the database is /not/ the number in the section name. (Like e.g. "3" for [Identity3]. The number just defines the sort order of the identities inside the Dialog GUI. - Although the numbers ought to be continuous (starting by 0), overall, and must not be larger than IdentitiesCount minus 1. The pointer to the database folders is the "name" of the identity. If you pre-create the dummy-identities inside the GUI you /need/ to make their names identical to the ones restored from your backup text files to the last single character. Else, the connection of the identity to the Dialog database is broken and your next crash is bound to happen soon. > but my question here is what is the logic of where identities go inside > the settings.ini file? IMHO, the section order largely depends on creation/alteration time and therefore is (more-the-less) driven by chance. AFAICT, the placement of each section is left to the Windows *.ini-file management functions. If a section does not exist, it is inserted top-most by these functions. If just a value inside an existing section is altered, the placement of the section remains unaltered. Dialog seems(!) to write some settings by replacing sections in whole. (= Deleting them and writing them anew.) Depending on you altering here and there in the GUI, each of /these/ sections have a chance to end up top-most at any given moment. Altering existing identities, OTOH, has no such section-reordering effect. The latest (by creation date and time) identity will be topmost of all identities. But there may be (one or more) arbitrary other sections between each pair of identities, because of the process described above. Nevertheless, the placement of a certain section inside settings.ini shouldn't matter the least to Dialog. Bernd
Technical Details
Message-ID:
<11kgreixfjb9q$.dlg@b.rose.tmpbox.news.arcor.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<t4enug$5vf$1@dont-email.me> <jj9ur27pmzkh.dlg@b.rose.tmpbox.news.arcor.de> <t4hrjd$7ri$1@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <11kgreixfjb9q$.dlg@b.rose.tmpbox.news.arcor.de> Subject: Re: DIALOG settings.ini identity syntax section locations Date: Sat, 30 Apr 2022 09:33:18 +0200 From: Bernd Rose <b.rose.tmpbox@arcor.de> References: <t4enug$5vf$1@dont-email.me> <jj9ur27pmzkh.dlg@b.rose.tmpbox.news.arcor.de> <t4hrjd$7ri$1@dont-email.me> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.readers Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Injection-Info: solani.org; logging-data="1740550"; mail-complaints-to="abuse@news.solani.org" User-Agent: 40tude_Dialog/2.0.15.41 (448e9594.33.325) Cancel-Lock: sha1:o/QSQRs1BR7e9KJyvVNttuhjhnw= X-User-Id: eJwNy0kBwDAIBEBL4VpADiXgX0LznzEBoV1hUFtbp0NKiQ1irxoOW3BJGSpZREmTDz94p2MkLtWX/RY54HLxuQ4suV2K+weE9xhv