After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 588969 - Integrate libunique library in GTK+
Integrate libunique library in GTK+
Product: gtk+
Classification: Platform
Component: .General
Other All
: Normal normal
: 3.0
Assigned To: gtk-bugs
Depends on: 127958 579571 623289
Reported: 2009-07-18 17:33 UTC by Javier Jardón (IRC: jjardon)
Modified: 2010-10-23 22:24 UTC
See Also:
GNOME target: ---
GNOME version: ---

Description Javier Jardón (IRC: jjardon) 2009-07-18 17:33:21 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 for more info
Comment 1 André Klapper 2010-08-07 20:30:13 UTC
Isn't this obsolete now by GtkApplication?
Comment 2 Emmanuele Bassi (:ebassi) 2010-08-08 00:15:06 UTC
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.
Comment 3 Matthias Clasen 2010-10-23 22:24:16 UTC
I've just added a small porting guide, more to come.