<div dir="ltr">That is just a separate idea,  but just to clarify, I am not suggesting doing it each second. But in some sufficiently small interval, in minutes. Quick question, aren't the activities saving metadata regularly now?<div>
<br></div><div>Anyway, I think the approach I mentioned should work fine, as I don't see why we should try anything too complex when this data is not 100% reliable as is just the time the activity was opened.</div><div>
<br></div><div>just my opinion,</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 12:10 PM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><br></div><div>If it doesn't close properly, it gets discarded naturally. No complex logic.</div>

<div><br></div><div>The only "improvement" it occurs to me, is that we could "commit" this time regularly... so even if its laptops shutdown we could still get some not-so-garbage data.</div><div><br>

</div>
</div><div><div><div class="gmail_extra"><br></div></div></div></blockquote><div><br></div></div><div>Please no. This means write files many times, less battery use, etc.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>Gonzalo </div></font></span><div><div class="h5">
<div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Mar 28, 2014 at 11:42 AM, Gonzalo Odiard <span dir="ltr"><<a href="mailto:godiard@sugarlabs.org" target="_blank">godiard@sugarlabs.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Fri, Mar 28, 2014 at 12:00 PM, Jerry Vonau <span dir="ltr"><<a href="mailto:me@jvonau.ca" target="_blank">me@jvonau.ca</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tony,<br>
<div><br>
> On March 28, 2014 at 7:38 AM Tony Anderson <<a href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>> wrote:<br>
><br>
><br>
> It is easier for users to understand shutting down the laptop by<br>
> pressing the power button twice than to use the shutdown in the XO menu.<br>
> However,<br>
> this shutdown does not properly close open activities.<br>
><br>
<br>
</div>Think the students need to learn how to use shutdown option in sugar,<br>
wonder how many have lost their work using that method.<br>
<div><br>
> When the power light goes red, I would assume it would be possible to<br>
> perform an orderly shutdown.<br>
><br>
<br>
</div>I don't think there is a way for olpc's powerd to inform sugar that the XO<br>
is powering down. I'm pretty sure SoaS/sugar desktop is in the same boat,<br>
you tell sugar to shutdown the computer and that process uses dbus to tell<br>
the OS but nothing in sugar is listening for a dbus shutdown signal from<br>
outside of sugar to start an orderly shutdown.<br>
<span><font color="#888888"><br></font></span></blockquote><div><br></div></div><div>This is a good point. If is not filled in a ticket, can you fill one?</div><span><font color="#888888"><div><br></div><div>
Gonzalo</div></font></span><div><div><br></div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><font color="#888888">
Jerry<br>
</font></span><div><br>
<br>
> The record is of an activity session so maintaining a list of session<br>
> information seems logical.<br>
><br>
> One option is to record the launch time in the stop time at launch so<br>
> that the metadata shows that a an activity session was started but not<br>
> properly closed.<br>
><br>
</div><div>> Tony<br>
><br>
><br>
> On 03/27/2014 09:45 PM, <a href="mailto:sugar-devel-request@lists.sugarlabs.org" target="_blank">sugar-devel-request@lists.sugarlabs.org</a> wrote:<br>
> > I was in doubt for two reasons: 1. because unlike launch_time, this<br>
> > spent-times metadata will not be saved if the activity does not end<br>
> > properly: could be a crash, a programming error, end of battery, etc.<br>
> > So the item N of spent-times will not necessarily correspont to item N<br>
> > of launch-times.<br>
><br>
</div><div><div>> _______________________________________________<br>
> Sugar-devel mailing list<br>
> <a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">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>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">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></div><br><br clear="all"><div><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div></div>
</div></div></div>
<br>_______________________________________________<br>
Sugar-devel mailing list<br>
<a href="mailto:Sugar-devel@lists.sugarlabs.org" target="_blank">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></blockquote></div><br></div>
</div></div></blockquote></div></div></div><div><div class="h5"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Learning Software for children<br></div></div>
</div></div></div></div>
</blockquote></div><br></div>