If autosave is switched on, Rosegarden autosaves a file in the $HOME/.local/share/rosegarden/autosave directory even if the file is 'unsaved' (and some editing activity has been going on so that the status is 'unsaved' meaning when you have an asterisk shown in the main window title).
Essentially imagine starting Rosegarden and working with it but not saving explicitly.
This has a use case if (how sometimes happen) you don't save a project right away because you're just experimenting or whatnot.
However if I 'crash' (kill) rosegarden and start it up again no clue is provided about an auto-save file. Note that the actual autosave file is created in the above directory
Did some analysis on this one and found the key parts involved. There are some complications related to using the current directory to hash the autosave filename. To get around this, I'm thinking we should add special handling for "Untitled":
AutoSaveFinder::getAutoSavePath()
RosegardenDocument::performAutoload()
is probably too deep. It is called for many reasons other than startup.RosegardenMainWindow::newDocument()
also seems too deep. It is called for many reasons other than startup.RosegardenMainWindow
's ctor would probably be best. Before it callsnewDocument()
, it should check for an Untitled autosave and force the user to accept or delete it.Just some thoughts. If there's a better way, we should do it.