Ajax John wrote: > Hi, > > I have written a gtk application on my Linux system. > At present I can open or start multiple instances of my application. > how can I modify my code such that at a time only one instance of my > application is running on my system. > > > Regards, > Ajax. > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > > You can write a .lock file everytime you start and then remove it when you close. To know if other instance is running, you just have to check if your .lock file exists.
Carlos _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list