stop sync in linux before killing daemon
[stack/code/dboxswitch.git] / profhandler.py
index d0fbb17..18dda25 100755 (executable)
@@ -160,6 +160,8 @@ class ProfHandler():
     def stopDropbox(self):
         """ Stop dropbox Daemon """
         pl = platform.system()
+        if pl == 'Linux':
+            os.system("dropbox stop")
         if pl in ('Linux','Darwin'):
             pidfile = os.path.expanduser("~/.dropbox/dropbox.pid")                    
             try: