Skip to content

Commit 392b14e

Browse files
committed
Set removing the CACHE/workspace dir after closing the app's window
1 parent da6c4e7 commit 392b14e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/gui/window.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,5 +739,13 @@ def on_close(self, w):
739739
settings["maximized"] = self.is_maximized()
740740
settings["filename"] = self.saveEntry.get_text()
741741

742+
# Remove this file to disable expanding the "Periodic saving" row in the
743+
# More Options Dialog
742744
if os.path.exists(f"{CACHE}/expand_pb_row"):
743745
os.remove(f"{CACHE}/expand_pb_row")
746+
747+
# Remove this folder to cleanup unnecessary content created during saving,
748+
# importing, or syncing the configuration only if the autostart file for
749+
# installing Flatpaks is not present
750+
if not os.path.exists(f"{home}/.config/autostart/io.github.vikdevelop.SaveDesktop.Flatpak.desktop"):
751+
subprocess.Popen(["rm", "-rf", f"{CACHE}/workspace"])

0 commit comments

Comments
 (0)