blob: f64d711957b03fcd6a2c994b96878f64c6b53f8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff --git a/dropbox.in b/dropbox.in
index 36a8604..2748194 100644
--- a/dropbox.in
+++ b/dropbox.in
@@ -74,6 +74,12 @@ DROPBOX_DIST_PATH = "%s/.dropbox-dist" % PARENT_DIR
DROPBOXD_PATH = os.path.join(DROPBOX_DIST_PATH, "dropboxd")
DESKTOP_FILE = "/usr/share/applications/dropbox.desktop"
+# DROPBOX_DIST_PATH and DROPBOXD_PATH are reassigned to /opt/dropbox and /opt/dropbox/dropboxd if path does not exist
+DROPBOX_INSTALL_PATH = "/opt/dropbox"
+if not os.path.exists(DROPBOXD_PATH) and os.path.exists(os.path.join(DROPBOX_INSTALL_PATH, "dropboxd")):
+ DROPBOX_DIST_PATH = DROPBOX_INSTALL_PATH
+ DROPBOXD_PATH = os.path.join(DROPBOX_DIST_PATH, "dropboxd")
+
enc = locale.getpreferredencoding()
# Available from https://linux.dropbox.com/fedora/rpm-public-key.asc
|