Log session start Sugar/GNOME and system shutdown
To get usage statistics of Sugar and GNOME, we add a log file in /home/olpc/.olpc-launch-stats. The chosen session is logged in olpc-session script and the shutdown is logged with a new systemd service.
Sugar/GNOME stats: Improve format and use printf
Use epoch time. Make the time the first column. Using bash printf directly has better performance.
Log time spent statistics for GNOME applications
The feature is composed of: - a Python daemon that uses Libwnck to listen windows changes and log the apps activation/deactivation - a .desktop file that makes the daemon run at startup (only in GNOME)
Improve GNOME applications statistics
- log apps start and end - skip logging window changes within the same app - a for was in need of a break
GNOME applications: use xid instead of pid
because pid is unreliable in wnck, get_pid() can return 0. Also, cache the application name in the beginning because it can change along the application life (there is a name-changed signal).
Run with LC_MESSAGES=C to avoid wrong output
Otherwise the commands ifconfig and iwconfig can give translated output, not suitable for the parsers.
Fix runner of connectivity daemon again
/usr/sbin is not in the path by default for NM scripts.
it was hanging until a timeout, similar to this bug: https://bugzilla.gnome.org/show_bug.cgi?id=568320 and it was resolved the same way.
Ignore Nautilus, change log format
Once Nautilus starts in F18 or F14, the process does not exit and the script is confused. The log format is simplified. The script was logging too many details.
Registrar suspend resume en log de sesiones
El monitor pasa a usar eventos.
Modifico olpc-sessions para que guarde el START en las stats de GNOME…
… Y Sugar