From ee451b0ae08e635da522f3381b2a34d4e1c8b594 Mon Sep 17 00:00:00 2001 From: stack Date: Mon, 9 Jul 2012 02:18:25 +0200 Subject: [PATCH] stop sync in linux before killing daemon --- profhandler.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/profhandler.py b/profhandler.py index d0fbb17..18dda25 100755 --- a/profhandler.py +++ b/profhandler.py @@ -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: -- 2.20.1