GNOME Bugzilla – Bug 588969
Integrate libunique library in GTK+
Last modified: 2010-10-23 22:24:16 UTC
Unique is a library for writing single instance application. If you launch a single instance application twice, the second instance will either just quit or will send a message to the running instance.
Unique makes it easy to write this kind of applications, by providing a base class, taking care of all the IPC machinery needed to send messages to a running instance, and also handling the startup notification side.
Unique aims to replace the BaconMessageConnection code that has been copied by many projects and the code using Bonobo and D-Bus.
See http://live.gnome.org/LibUnique for more info
Isn't this obsolete now by GtkApplication?
technically, yes. needs a porting guide from libunique to GtkApplication - especially the message passing; also, GtkApplication needs a couple more details propagated to the running instance (screen and workspace, mostly). this last bit is tracked by bug 623289 - and I have a patch almost ready for that.
I've just added a small porting guide, more to come.