Re: Inter Application communication in GJS apps



Hi Satyajit!


On Sat, May 2, 2015 at 4:14 AM, Satyajit Sahoo <satyajit happy gmail com> wrote:
Hello all.

I am very new to GTK and just started working on an GTK app. But I have a
query and cannot seem to find any tutorials or samples :(


How nice! :)

I want have 2 applications (one GUI and one CLI) and they should be able to
communicate with each other.

For example, I run the CLI app with some parameters, it should pass the
parameters to the GUI app and receive a reply from the GUI app.

I was told that this can be done with DBus, but I'm stuck there.


What language are you using?  In any case, yes you could use DBus to
message pass data between two discrete processes.  There is a limit,
so if you're passing large amounts of data, you probably don't want to
use DBus for that.  I don't recall, but I think the limit is 128MB or
something like that.  So pictures and other large data would not work.
In which case, as an old school guy, I'd use regular sockets or some
other IPC mechanism.

Where are you looking for your DBus information?  I agree that DBus
docs is a trifle daunting for someone who hasn't done it before.

sri

Satyajit Sahoo
UX Designer
Behance Profile

We're all stories, in the end. Just make it a good one, eh? — The Doctor,
Season 5, Episode 13.


_______________________________________________
javascript-list mailing list
javascript-list gnome org
https://mail.gnome.org/mailman/listinfo/javascript-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]