From fc9bed2167c90eca32df0f1c96f3332042a46eee Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 17 Jan 2008 22:21:20 +0000 Subject: #1396: Use /etc/inhibit-ebook-sleep instead. --- 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, -- cgit v0.9.1