Default actions are builded and profile manager stored from argument (instance of ProfHandler """
self.app = QtGui.QApplication(sys.argv)
- for i in range(3):
+ for i in range(23):
if not QtGui.QSystemTrayIcon.isSystemTrayAvailable():
sleep(4)
else:
self.stopDropbox()
try:
if pl in ('Linux','Darwin'):
- if os.path.exists(self.getDropboxDirectory()):
- os.unlink(self.getDropboxDirectory())
- os.symlink(ppath, self.getDropboxDirectory())
+ dbdir = self.getDropboxDirectory()
+ if os.path.exists(dbdir):
+ os.unlink(dbdir)
+ os.symlink(ppath, dbdir)
else:
raise NotImplementedError, "Not implemented yet."
except IOError as e:
if pl in ('Linux', 'Darwin'):
basepath = os.path.join(os.path.expanduser("~"), ".dropbox")
for path in [os.path.join(basepath, "instance1"), basepath]:
- if os.path.exists(path):
+ if os.path.exists(path) and os.path.islink(path):
return path
raise NotImplementedError("Path not found " + basepath + "[instance1]")
elif pl == 'Windows':