[Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved?
bo.berglund at gmail.com
Mon Dec 28 11:21:00 CET 2020
On Mon, 28 Dec 2020 01:35:54 +0100, Mattias Gaertner via lazarus
<lazarus at lists.lazarus-ide.org> wrote:
>On Sun, 27 Dec 2020 18:58:58 -0500
>wkitty42--- via lazarus <lazarus at lists.lazarus-ide.org> wrote:
>> On 12/27/20 5:15 PM, Mattias Gaertner via lazarus wrote:
>> > When the IDE starts, and there is no environmentoptions.xml file it
>> > copies it from the secondary config directory. Maybe you are seeing
>> > that?
Where is this "secondary config dir" located?
I did not know it exists...
>> i think one of the main questions is "how does that file come up
>> missing on a long time working installation in the first place?"
>> especially since Laz is the only thing to touch it...
>Was the file missing, or only the desktop node?
Impossible to know since I do not look in the config dir every time
before starting Lazarus...
The file had changed its date from an earlier time (months ago) to the
current time, and there was no sign of any custom desktop settings in
The only thing I think is in common between these instances, which
happened on both Windows and Linux, is that I have used the
Tools/Options to increase the count for recent projects from the
default 5 to 10. I always seem to get a project I want to open
disappear from that list when it only holds 5 recent projects.
I believe I did so on both Lazarus installations.
So what does Lazarus do when one changes this value?
Does it rewrite the environment file based on the default or what?
I made a test to check this (since using the backup file brought back
the 5 files limit):
It seems like it rewrites the environment fiile by changing the 5 to
10 but also by changing the sequence of some xml nodes...
But it does not visibly affect the way Lazarus looks when starting up
Developer in Sweden
More information about the lazarus