Gala: Communicating with Touch茅gg should not pass structs via a socket

Created on 16 Dec 2020  路  3Comments  路  Source: elementary/gala

@tintou's comments here:

I'm not really a fan of passing structs via a socket, you can also use D-Bus over a socket instead which would make it look better for inter-process communication.
for an example on how to do it, it's what I've done for switchboard:
https://github.com/elementary/applications-menu/blob/master/src/synapse-plugins/worker-link.vala
https://github.com/elementary/applications-menu/blob/master/src/synapse-plugins/switchboard-plugin.vala
https://github.com/elementary/applications-menu/blob/master/src/synapse-plugins/switchboard-plugin/plugin.vala

Wishlist Needs Design

Most helpful comment

I just finished the implementation upstream: https://github.com/JoseExposito/touchegg/issues/436

As soon as I figure out how D-Bus works in Vala, I'll do my best to port it.

All 3 comments

This could be an interesting addition, specially to make easier from higher level languages that don't have access to the big variety of ints C++ has or that might align memory in a different way, like JS.

I'll look into this, but with low priority.

I just finished the implementation upstream: https://github.com/JoseExposito/touchegg/issues/436

As soon as I figure out how D-Bus works in Vala, I'll do my best to port it.

@JoseExposito looking at your implementation using only signals it should be pretty forward:

  1. Create an interface for the D-Bus service
  2. Get a proxy for the service
  3. Connect to the signal on the proxy

If I can help you in any way, let me know :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marbetschar picture marbetschar  路  4Comments

danrabbit picture danrabbit  路  4Comments

peteruithoven picture peteruithoven  路  3Comments

Janiczek picture Janiczek  路  4Comments

techdev5521 picture techdev5521  路  3Comments