<div dir="ltr">The notificator can write the notification to a file,<div>and the activity can use Gio.FileMonitor to know when the file was updated.</div><div><br></div><div>Just for curiosity, why not use the Sugar notifications?</div><div><br></div><div>Gonzalo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 20, 2015 at 10:43 AM, Gustavo Duarte <span dir="ltr"><<a href="mailto:gus.duarte@gmail.com" target="_blank">gus.duarte@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Gonzalo,<br>
<br>
Sure, I'll try explain the user case.<br>
<br>
Notificator: There is a Sugar Activity who shows Notification messages<br>
for the kid.<br>
<br>
Daemon: There is an script running on cron, who get new notification<br>
from a Server.<br>
<br>
I need communicate the Daemon with the Notificator, so when Daemon<br>
receive a new notification from Server, it'll send a signal to<br>
Notificator.<br>
<br>
Notificator when receive the signal, should refresh a widget.<br>
<br>
<br>
I know a way to do that, using system signals, but i wonder if Sugar<br>
has another way to achieve that.<br>
<br>
Thanks.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
On Wed, May 20, 2015 at 9:41 AM, Gonzalo Odiard <<a href="mailto:godiard@sugarlabs.org">godiard@sugarlabs.org</a>> wrote:<br>
> Hi Gustavo,<br>
> I think would help if you explain the specific use case.<br>
> The activity who will receive the message is a specific activity,<br>
> and you will send it from a script or service?<br>
> Can the activity just monitor a file or something like that?<br>
><br>
> Gonzalo<br>
><br>
><br>
> On Wed, May 20, 2015 at 9:27 AM, Gustavo Duarte <<a href="mailto:gus.duarte@gmail.com">gus.duarte@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Walter,<br>
>><br>
>> There are two different activities, and the communication could be<br>
>> asynchronous.<br>
>><br>
>> I not sure, if the the  comment bellow, can confuse you, if yes,<br>
>> please forget that.<br>
>><br>
>> The process who send the message, could be  just a script, isn't<br>
>> needed it be an Activity.<br>
>><br>
>><br>
>> Thanks.<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> On Wed, May 20, 2015 at 8:40 AM, Walter Bender <<a href="mailto:walter.bender@gmail.com">walter.bender@gmail.com</a>><br>
>> wrote:<br>
>> > Gustavo,<br>
>> ><br>
>> > Are they two instances of the same activity or two different activities?<br>
>> > Is<br>
>> > the communication synchronous or asynchronous?<br>
>> ><br>
>> > -walter<br>
>> ><br>
>> > On Wed, May 20, 2015 at 6:35 AM, Gustavo Duarte <<a href="mailto:gus.duarte@gmail.com">gus.duarte@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> James,<br>
>> >><br>
>> >> I should be more specific, sorry, in my case, the two Activities are<br>
>> >> on the same computer.<br>
>> >><br>
>> >> Sam,<br>
>> >><br>
>> >> Are a thread about this, already ?<br>
>> >><br>
>> >> Thanks.<br>
>> >><br>
>> >> Gustavo<br>
>> >><br>
>> >> On Wed, May 20, 2015 at 6:46 AM, Sam P. <<a href="mailto:sam.parkinson3@gmail.com">sam.parkinson3@gmail.com</a>><br>
>> >> wrote:<br>
>> >> > Hi James,<br>
>> >> ><br>
>> >> > Is this meant to be a reply to an existing thread?<br>
>> >> ><br>
>> >> > Thanks,<br>
>> >> > Sam<br>
>> >> ><br>
>> >> > On Wed, May 20, 2015 at 12:01 PM James Cameron <<a href="mailto:quozl@laptop.org">quozl@laptop.org</a>><br>
>> >> > wrote:<br>
>> >> >><br>
>> >> >> Are the two activities on:<br>
>> >> >><br>
>> >> >> - separate computers, or<br>
>> >> >><br>
>> >> >> - the same computer?<br>
>> >> >><br>
>> >> >> If the two activities are on separate computers, do they have the<br>
>> >> >> same<br>
>> >> >> bundle id?<br>
>> >> >><br>
>> >> >> If the two activities are on the same computer, do they share the<br>
>> >> >> same<br>
>> >> >> display?<br>
>> >> >><br>
>> >> >> --<br>
>> >> >> James Cameron<br>
>> >> >> <a href="http://quozl.linux.org.au/" target="_blank">http://quozl.linux.org.au/</a><br>
>> >> >> _______________________________________________<br>
>> >> >> Sugar-devel mailing list<br>
>> >> >> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
>> >> >> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>> >> ><br>
>> >> ><br>
>> >> > _______________________________________________<br>
>> >> > Sugar-devel mailing list<br>
>> >> > <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
>> >> > <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>> >> ><br>
>> >> _______________________________________________<br>
>> >> Sugar-devel mailing list<br>
>> >> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
>> >> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
>> ><br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > Walter Bender<br>
>> > Sugar Labs<br>
>> > <a href="http://www.sugarlabs.org" target="_blank">http://www.sugarlabs.org</a><br>
>> _______________________________________________<br>
>> Sugar-devel mailing list<br>
>> <a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
>> <a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
><br>
><br>
><br>
><br>
> --<br>
> Gonzalo Odiard<br>
><br>
> SugarLabs - Software for children learning<br>
_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org">Sugar-devel@lists.sugarlabs.org</a><br>
<a href="http://lists.sugarlabs.org/listinfo/sugar-devel" target="_blank">http://lists.sugarlabs.org/listinfo/sugar-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div></div>
</div>