Skip to content

Commit 13ed0f2

Browse files
authored
Update synchronization.py
1 parent db83053 commit 13ed0f2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/synchronization.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,12 @@ def check_manually_sync_status(self):
6565
def download_config(self):
6666
subtitle = (lambda s: re.sub(r'<.*?>', '', s).split('…')[-1].strip())(_["importing_config_status"].format(settings["file-for-syncing"]))
6767
os.system(f'notify-send "SaveDesktop Synchronization" "{subtitle}"')
68-
if not os.path.exists(f'{settings["file-for-syncing"]}/SaveDesktop.json'):
69-
subprocess.run(['python3', f'{system_dir}/periodic_saving.py', '--now'], check=True)
68+
if not os.path.exists(f"{settings['file-for-syncing']}/SaveDesktop.json"):
69+
err_str = _["err_occured"]
70+
err = "SaveDesktop.json doesn't exist in the cloud drive folder!"
71+
os.system(f'notify-send "{err_str}" "{err}')
72+
exit()
7073
self.get_pb_info()
71-
self.file = "test_Sync"
7274
os.makedirs(f"{CACHE}/syncing", exist_ok=True) # create the subfolder in the cache directory
7375
os.chdir(f"{CACHE}/syncing")
7476
os.system("echo > sync_status") # create a txt file to prevent removing the sync's folder content after closing the app window

0 commit comments

Comments
 (0)