On Sat, 2008-04-12 at 16:46 +0530, 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.

there are many ways to achieve single instance applications. one is to
use a X selection; another is to use a pipe/lock file; yet another one
is to use D-Bus.

you can use the unique library, or reuse parts of it:

  http://github.com/ebassi/unique/tree/master

ciao,
 Emmanuele.

-- 
Emmanuele Bassi,
W: http://www.emmanuelebassi.net
B: http://log.emmanuelebassi.net

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to