From 06c12e51f8352de73797a2eb120743caabac5868 Mon Sep 17 00:00:00 2001 From: spanderman Date: Sat, 24 Jun 2023 12:30:21 +0200 Subject: [PATCH] fixed permission on ".dropbox-dist" folder causing issues with backup software MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By creating the folder with mode=0o400 we preserve read only access and auto updater should remain disabled. Still, backup software like DéjàDup do not complain about it anymore because they can read it/back it up. --- dropbox-app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropbox-app.py b/dropbox-app.py index aa1c065..815f3b0 100644 --- a/dropbox-app.py +++ b/dropbox-app.py @@ -227,7 +227,7 @@ def _disable_auto_updates(self): shutil.move(orig_dir, backup_dir) logging.info("Disabling auto-updates by making {} unwritable".format(orig_dir)) - os.mkdir(orig_dir, mode=0) + os.mkdir(orig_dir, mode=0o400) def _launch_dropbox_daemon(self): logging.info("Running Dropbox's launcher at {}...".format(DROPBOX_LAUNCHER))