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.
f1fc9886cc
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 | 10 years ago | |
examples | 10 years ago | |
m4 | 15 years ago | |
po | 9 years ago | |
src | 9 years ago | |
tests | 10 years ago | |
.gitignore | 11 years ago | |
AUTHORS | 17 years ago | |
COPYING | 17 years ago | |
MAINTAINERS | 13 years ago | |
Makefile.am | 10 years ago | |
README | 10 years ago | |
autogen.sh | 10 years ago | |
configure.ac | 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.