[Lazarus] Losing desktop when restarting Lazarus - where are desktop settings saved?

Bo Berglund bo.berglund at gmail.com
Sun Dec 27 09:12:20 CET 2020

On Sun, 27 Dec 2020 07:43:54 +0100, Jean SUZINEAU via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>I guess this settings are saved in the .lps file of your project.
>In my own lps files, I can find the units opened in the code editor, my 
>debug watches ...

I think I stated that the code editor is the *only window* that is now
visible and it contains the units I had open when I closed the
All of that is present, but EVERYTHING ELSE I had set up is gone!

I was told earlier that the window arrangement (project options,
object inspector, code explorer, messages etc, etc) would be saved and
possible to return to if one saved the desktop under a name other than

One can have several such desktops to choose from (optimized for GUI
app development or console app etc).

And the desktops are not tied to the projects, they are a Lazarus
configuration like the color scheme of the source editor etc.
So I assume the only related item that would be found in the project
lps file should be the *name* of the desktop to use.

So I saved my configured environment under such a name and it was
returned when I closed and then opened my project until yesterday when
it no longer was....

I want to restore it from my backup of Lazarus settings but I don't
know where Lazarus saves this information...

And I woud like to know *why* Lazarus loses this information, it is
not the first time it happened...

In fact I just opened a related Lazarus project (the client) on my
Windows 10 PC where I run the same 2.0.8/3.0.4 version of Lazarus.
Ant it too had lost its desktop settings and is now only displaying
the code editor, no other window visible!!!!!

Next I started Lazarus 2.0.10 on Windows 10 to check if that too has
lost the desktops, but in that case it has not!

Is this a known bug in Lazarus 2.0.8?

For example if the IDE is open across midnight and then closed does it
lose its desktop configuration? I have used both of the 2.0.8 Lazarus
(Windows and Raspberry) yesterday and I made sure to close them before
I want to bed since my PC would run a weekly backup overnight (not so
on the RPi).
So both were active at midnight but closed a bit later.
But my 2.0.10 Lazarus was *not* running, last time I used that was
yesterday morning.

Bo Berglund
Developer in Sweden

More information about the lazarus mailing list