GNOME Bugzilla – Bug 455598
Use Unique to ensure unicity instead of bacon
Last modified: 2009-12-29 13:41:37 UTC
Use ebassi's Unique work to ensure unicity and communication with the existing instance instead of the bacon based solution.
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.
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.
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
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.
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.