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 455598 - Use Unique to ensure unicity instead of bacon
Use Unique to ensure unicity instead of bacon
Status: RESOLVED WONTFIX
Product: gedit
Classification: Applications
Component: general
git master
Other All
: Normal enhancement
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2007-07-10 16:30 UTC by Alexandre Mazari
Modified: 2009-12-29 13:41 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Straightforward port to Unique 0.91 API (4.02 KB, patch)
2007-07-10 16:33 UTC, Alexandre Mazari
none Details | Review
Port to Unique 0.91 using the command id (12.43 KB, patch)
2007-07-10 16:38 UTC, Alexandre Mazari
none Details | Review

Description Alexandre Mazari 2007-07-10 16:30:33 UTC
Use ebassi's Unique work to ensure unicity and communication with the existing instance instead of the bacon based solution.
Comment 1 Alexandre Mazari 2007-07-10 16:33:31 UTC
Created attachment 91553 [details] [review]
Straightforward port to Unique 0.91 API

This one is a straight forward port to the Unique 0.91 API. The logic is the same as in the bacon code.
It should behave properly from my tests.
Comment 2 Alexandre Mazari 2007-07-10 16:38:00 UTC
Created attachment 91554 [details] [review]
Port to Unique 0.91 using the command id

This attempt use one message per action instead of batching them. It use the predefined command id of the Unique API.
It DOESN'T work properly yet :
* the workspace, encoding and line_position are not communicated by the wire, the currently are hardcoded.
* the window selection misbehave : if --new-window filename1 filename2 are specified, a new window is created but the files are opened in the root window.
Comment 3 Javier Jardón (IRC: jjardon) 2009-08-30 21:34:59 UTC
Could some gedit developer review this?

More info here:http://live.gnome.org/LibUnique and more applications using libunique here: http://live.gnome.org/LibUnique/CurrentUsers
Comment 4 Ignacio Casal Quinteiro (nacho) 2009-08-30 21:37:40 UTC
The thing is that maybe we are going to use our own system for this based on dbus, jesse and paolo should know more about this.
Comment 5 Paolo Borelli 2009-12-29 13:41:37 UTC
I am closing this, I don't think that using libunique buys us any advantage and the current system works well (even if limited). If we switch, is to have a more powerful dbus system.