mambabase: remove autostart file when finished

This commit is contained in:
Silvan Calarco 2020-07-24 12:03:47 +02:00
parent 53cef707b8
commit b30fb08934

View File

@ -195,6 +195,14 @@ class InstallThread(QtCore.QThread):
'label': _("Installation finished!"),
'details': _("Installation finished!")})
# Remove any autostart file
try:
file_path = Path.home() / ".config/autostart/mambabase.desktop"
file_path.unlink()
print(file_path)
except:
None
# Enable back and next buttons
parent.installationPage.done = True
self.doneSignal.emit()