Esempio n. 1
0
 def start(self):
     if not self.proc is None:
         self.proc.kill()
     if len(self.watched_ids) > 0:
         self.proc = DaemonProcess([
             exe, "-home",
             os.path.join(get_config_dir(), "syncthing"), "-folders",
             ",".join(self.watched_ids)
         ])
         self.proc.connect("exit", self._on_exit)
         self.proc.connect("failed", self._on_failed)
         log.info("Starting syncthing-inotify for %s" %
                  (",".join(self.watched_ids)))
         self.proc.start()