[caribou: 18/22] Added run method to CaribouDaemon



commit e276843feec6029c3574300178cd1b136ea90659
Author: Eitan Isaacson <eitan monotonous org>
Date:   Fri Apr 29 23:22:07 2011 -0700

    Added run method to CaribouDaemon

 caribou/daemon/main.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/caribou/daemon/main.py b/caribou/daemon/main.py
index 1798592..02139f8 100644
--- a/caribou/daemon/main.py
+++ b/caribou/daemon/main.py
@@ -149,3 +149,9 @@ class CaribouDaemon:
         self._deregister_event_listeners()
 
 
+    def run(self):
+        try:
+            pyatspi.Registry.start()
+        except KeyboardInterrupt:
+            self.clean_exit()
+            pyatspi.Registry.stop()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]