[Gambas-user] Running program
Fabien Bodard
gambas.fr at ...626...
Wed Nov 7 12:23:07 CET 2012
You can use a .Lock file.
if this file exist for example in ~/.cache/myapp dir then say to the user
that the app is already running ... destroy this file when quitting the app
if the app crash before so the file still exist.. just say to the user if
he is sure to not have launched another time...
2012/11/7 Cogier <charlie at ...2793...>
>
> Can you tell me the best way to spot that there is another instance of the
> same Gambas program running at the same time.
>
> I have users who sometimes start the same program written in Gambas twice
> and I would like the 2nd instance to pop up a message saying that there is
> already a copy of the program running.
>
> Thanks for your help.
> --
> View this message in context:
> http://old.nabble.com/Running-program-tp34651275p34651275.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Fabien Bodard
More information about the User
mailing list