[Geany-devel] Replacing the control socket with dbus

Matthew Brush mbrush at xxxxx
Sun Jan 1 00:49:59 UTC 2012


On 12/31/2011 08:26 AM, Arthur Skowronek wrote:
> Hi,
>
> http://memegenerator.net/cache/instances/400x/12/12436/12734680.jpg
>
> with this little stupid meme I would like to start a discussion about
> replacing the current control socket living "somewhere" in the
> "~/.config/geany" directory space with implementing GApplication from
> recent GLib versions.
>
> As it looks to me the current tasks of the control socket are:
>   * ensure some basic uniqueness (open files via the geany command
>     in an already running instance)
>   * provide ability to perform basic operations on a running Geany
>     instance like
>       - opening files
>       - go to a certain position in the file.
>       - obtain a list of documents opened in the current instance
>
> These tasks can be accomplished with GApplication too. On top of that we
> would get rid of:
>   * cluttering the filesystem with sockets
>   * possibility of a dead lock in the doclist command
>   * general freeze while a client is connected to the socket.
>
> The downside would be that the required version for GLib would be pushed
> to 2.28 and this version is not available on the stable branch for all
> distributions.
>
> My suggestion therefore is to put this at least on the Todo list and
> replace it with the planned feature to use dbus.
>
> On top of that I would offer my free time to work on this topic as soon
> as all requirements are met, if appreciated.
>

As the others have said the two key issues here are 1) too new GTK/GLib 
version and 2) dependence on DBus which I'm going to guess isn't easily 
working and installable on Win32/OSX?

There's lots of other stuff you can help out with though :)

Cheers,
Matthew Brush



More information about the Devel mailing list