Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/readactivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'readactivity.py')
-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,