[Lazarus] Auto session store etc.
Giuliano Colla
giuliano.colla at fastwebnet.it
Fri Jan 4 14:01:19 CET 2019
Il 04/01/2019 12:08, Florian Klämpfl via lazarus ha scritto:
> Is there any possibility that lazarus auto stores the current session
> (project file, source files, session information etc.) every xxxx s?
>
> Background is that I am starting another trial to use linux as desktop
> system but within in a few days I have already lost changes because
> lazarus was just killed on shutdown (well, actually I would prefer to
> have linux just hibernating instead of shutdown, but this is another
> story).
>
> Furthermore, is there any option to store the green bars which
> indicate changed sources between different runs of lazarus?
I'm using linux as my desktop (and laptop) system since a very long time.
Basically I never use shutdown, except for a kernel or libc update. I
just leave my desktop linux running, and either suspend or hibernate my
laptop.
Depending of the combination of your platform, your distro, and the
Desktop you're using, you may have available both a "suspend to ram"
(only if it is a laptop with battery) and a "hibernate" (=suspend to
disk). But you must pick up a good distro, within the distro select a
stable and tested version (the latest version is always a lottery), and
select a good Desktop.
Or you may resort to command-line, which is less subject to Desktop
environment bugs: depending on distro and kernel you may have available
/pm-suspend/ and /pm-hibernate/ or /systemctl suspend/ and /systemctl
hibernate. /If it doesn't wake up properly, you may need to google to
find out the quirks required for your specific hardware.
As far as Lazarus is concerned, everything relevant is saved each time
you compile (or attempt to compile) your application. Just hit F9 and
you're done.
You may easily check and tune your behaviour: if, when trying to quit
Lazarus, a dialogue shows "Save changes to project xxxx?" it means that
some changes will be lost by a kill, if it doesn't show, it means that
all relevant changes have already been saved, and that a kill wouldn't
do any harm.
Giuliano
--
Do not do to others as you would have them do to you.They might have different tastes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190104/f67bf9ca/attachment-0001.html>
More information about the lazarus
mailing list