http://forum.lazarus.freepascal.org/index.php?topic=22882.0
Hello everybody.
RunOnce_PostIt allows your application to run only once.
If you try to run it again, you may post a message to the first running application.
Here download page :
https://github.com/fredvs/runonce_postit
RunOnce procedure is (a lot of) inspired by LSRunOnce of LazSolutions, created by Silvio Clecio : http://silvioprog.com.br
RunOnce_PostIt works for LCL, fpGUI, msei and console applications.
Included in package binary examples (Linux 64 and Windows 32).
Have fun.