diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-01-17 22:21:20 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-01-17 22:21:20 (GMT) |
commit | fc9bed2167c90eca32df0f1c96f3332042a46eee (patch) | |
tree | ae38a9fff590c93d760207a3d5ad528cdd46e86e | |
parent | a886b037618b06659e3ddecdbfb0b962134e2a2a (diff) |
#1396: Use /etc/inhibit-ebook-sleep instead.
-rw-r--r-- | readactivity.py | 4 |
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, |