Sugar Learning Environment, Activity Toolkit, GTK 3.
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
James Cameron f1fc9886cc power: avoid filesystem access if powerd absent
On commodity hardware without olpc-powerd, there is unnecessary
filesystem access.

On XO laptop hardware there are unnecessary errors in log for every
object delete:

	ERROR root: Inhibit Suspend: Could not delete file
	/var/run/powerd-inhibit-suspend/1773

	Exception AttributeError: "'NoneType' object has no attribute
	'endswith'" in <bound method PowerManager.__del__ of
	<sugar3.power.PowerManager instance at 0xa15962c>> ignored

The Clock activity in speaking mode is a good reproducer.

Following changes are made:

- move the directory check to __init__, and set self._path to None if
  olpc-powerd is not present,

- on inhibit_suspend, use self._path, which avoids a check of the
  directory,

- on restore_suspend or __del__, avoid a call to os.unlink if
  olpc-powerd is not present.
9 years ago
bin Avoid breaking activity startup by dbus timeout on sigle instance - Fixes #4773 10 years ago
examples Fixes for pep8 1.5 10 years ago
m4 Add simple toolbars example 15 years ago
po Update Igbo translations from ibo.po 9 years ago
src power: avoid filesystem access if powerd absent 9 years ago
tests Implement mime.get_mime_parents using python 10 years ago
.gitignore Update .gitignore 11 years ago
AUTHORS Add AUTHORS file 17 years ago
COPYING Make it distcheck. Fix license. 17 years ago
MAINTAINERS Add MAINTAINERS file 13 years ago
Makefile.am Add missing translations 10 years ago
README Test commit 10 years ago
autogen.sh Modernize gettext setup 10 years ago
configure.ac Release 0.105.0 9 years ago

README

Sugar is the core of the OLPC Human Interface. The toolkit provides
a set of widgets to build HIG compliant applications and interfaces
to interact with system services like presence and the datastore.