From c05614c18af4a1c8a28400799533d75f3ae6476f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Sun, 23 Dec 2012 20:26:11 +0200 Subject: [PATCH] code style --- dropboxd-path.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dropboxd-path.patch b/dropboxd-path.patch index f39a0ed..b9098a2 100644 --- a/dropboxd-path.patch +++ b/dropboxd-path.patch @@ -5,10 +5,10 @@ def start_dropbox(): - db_path = os.path.expanduser(u"~/.dropbox-dist/dropboxd").encode(sys.getfilesystemencoding()) -+ # first try dropboxd from system, fallback to user install ++ # first try dropboxd from system, fallback to user install + db_path = "/usr/bin/dropboxd" + if not os.access(db_path, os.X_OK): -+ db_path = os.path.expanduser(u"~/.dropbox-dist/dropboxd").encode(sys.getfilesystemencoding()) ++ db_path = os.path.expanduser(u"~/.dropbox-dist/dropboxd").encode(sys.getfilesystemencoding()) if os.access(db_path, os.X_OK): f = open("/dev/null", "w") # we don't reap the child because we're gonna die anyway, let init do it -- 2.44.0