Skip to content

Commit d8b7d58

Browse files
authored
Update config.py
1 parent 6469e8f commit d8b7d58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949

5050
class Save:
5151
def __init__(self):
52+
# create a txt file to prevent deleting the current saving by closing the application window
53+
os.system("echo > saving_status")
5254
print("saving settings from the Dconf database")
5355
os.system("dconf dump / > ./dconf-settings.ini")
5456
print("saving Gtk settings")
@@ -205,6 +207,7 @@ def __init__(self):
205207
os.system(f"cp -R ./cfg.sd.tar.gz {DATA}/synchronization/{file}")
206208
if os.path.exists(f"{CACHE}/save_config"):
207209
print("THE CONFIGURATION HAS BEEN SAVED SUCCESSFULLY!")
210+
os.system("rm saving_status")
208211

209212
class Import:
210213
def __init__(self):

0 commit comments

Comments
 (0)