Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-01-17 22:21:20 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-01-17 22:21:20 (GMT)
commitfc9bed2167c90eca32df0f1c96f3332042a46eee (patch)
treeae38a9fff590c93d760207a3d5ad528cdd46e86e
parenta886b037618b06659e3ddecdbfb0b962134e2a2a (diff)
#1396: Use /etc/inhibit-ebook-sleep instead.
-rw-r--r--readactivity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/readactivity.py b/readactivity.py
index 4db55ea..956e3b0 100644
--- a/readactivity.py
+++ b/readactivity.py
@@ -124,8 +124,8 @@ class ReadActivity(activity.Activity):
self.unused_download_tubes = set()
self._want_document = True
- fname = os.path.join(activity.get_bundle_path(), 'ebook-enable-sleep')
- if os.path.exists(fname):
+ fname = os.path.join('/etc', 'inhibit-ebook-sleep')
+ if not os.path.exists(fname):
try:
bus = dbus.SystemBus()
proxy = bus.get_object(_HARDWARE_MANAGER_SERVICE,