form.onclosequery not activated on Linux OS shutdown
Original Reporter info from Mantis: hjh
-
Reporter name: Henk Hagedoorn
Original Reporter info from Mantis: hjh
- Reporter name: Henk Hagedoorn
Description:
form.onclosequery does not execute on OS shutdown on Linux
and neither does
form.ondestroy
application.onEndSession
application.OnQueryEndSession
application.OnDeactivate
Additional information:
In my opinion Lazarus/Free Pascal has become so good, that it is now possible to write professional, commercial-grade applications in Lazarus, EXCEPT for a few bugs (which often can be worked around fairly quickly, but not this bug it seems).
onqueryendsession does absolutely nothing on Linux, while form.onclosequery does not fire on OS shutdown, nor does formdestroy.
It is really essential for a data-centric application to be able to save data on OS shutdown. For instance, if a user forgets to save data in a word processor or text editor (in some other workspace) created using Lazarus, and he/she shuts down the OS, while the application is still on (in another workspace), data will not be saved. Hence users will lose their changes, which can be dramatic in a worst-case scenario. IMHO this is an essential feature which has been missing for years on Lazarus/Linux.
Mantis conversion info:
- Mantis ID: 20920
- Version: 0.9.30
- Monitored by: » Yogi (Joachim Paepke), » hjh (Henk Hagedoorn)
- Target version: 1.4