[Sugar-devel] Time spent on activity (was Best time, format for logging?)
Jerry Vonau
me at jvonau.ca
Fri Mar 28 11:00:21 EDT 2014
Hi Tony,
> On March 28, 2014 at 7:38 AM Tony Anderson <tony_anderson at usa.net> wrote:
>
>
> It is easier for users to understand shutting down the laptop by
> pressing the power button twice than to use the shutdown in the XO menu.
> However,
> this shutdown does not properly close open activities.
>
Think the students need to learn how to use shutdown option in sugar,
wonder how many have lost their work using that method.
> When the power light goes red, I would assume it would be possible to
> perform an orderly shutdown.
>
I don't think there is a way for olpc's powerd to inform sugar that the XO
is powering down. I'm pretty sure SoaS/sugar desktop is in the same boat,
you tell sugar to shutdown the computer and that process uses dbus to tell
the OS but nothing in sugar is listening for a dbus shutdown signal from
outside of sugar to start an orderly shutdown.
Jerry
> The record is of an activity session so maintaining a list of session
> information seems logical.
>
> One option is to record the launch time in the stop time at launch so
> that the metadata shows that a an activity session was started but not
> properly closed.
>
> Tony
>
>
> On 03/27/2014 09:45 PM, sugar-devel-request at lists.sugarlabs.org wrote:
> > I was in doubt for two reasons: 1. because unlike launch_time, this
> > spent-times metadata will not be saved if the activity does not end
> > properly: could be a crash, a programming error, end of battery, etc.
> > So the item N of spent-times will not necessarily correspont to item N
> > of launch-times.
>
> _______________________________________________
> Sugar-devel mailing list
> Sugar-devel at lists.sugarlabs.org
> http://lists.sugarlabs.org/listinfo/sugar-devel
More information about the Sugar-devel
mailing list