[chrome-gnome-shell] Added comments



commit 8410ed3058caafe09ff4258e19387b8cbeac65c9
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Wed Sep 7 23:23:56 2016 +0300

    Added comments

 connector/chrome-gnome-shell.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/connector/chrome-gnome-shell.py b/connector/chrome-gnome-shell.py
index c8bdbd8..06a61c1 100755
--- a/connector/chrome-gnome-shell.py
+++ b/connector/chrome-gnome-shell.py
@@ -275,8 +275,14 @@ def setup_thread_excepthook():
 def main():
     debug('[%d] Startup' % (os.getpid()))
 
+    # Set custom exception hook
     setup_thread_excepthook()
     sys.excepthook = default_exception_hook
+
+    """
+    We should listen GNOME Shell events only in one instance.
+    Use local socket to determine if another instance already running.
+    """
     lock_socket = socket.socket(socket.AF_UNIX, socket.SOCK_DGRAM)
     try:
         lock_socket.bind('\0chrome-gnome-shell-%d' % os.getppid())


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