SUMMARY The current default behaviour for Ghostwriter is to save drafts and temporary files in the Documents directory in the user's home. This means that the Documents directory can very quickly become engulfed with files that are difficult to manage. A better idea would perhaps be to create these files either in a Ghostwriter-specific subdirectory in the Documents directory, or to use a directory such as ~/.local/share/ghostwriter to keep the Documents directory clean. This would also be consistent with other applications such as LibreOffice, which hide drafts and temporary files from the user as they are generally not relevant to them. STEPS TO REPRODUCE 1. Create several drafts OBSERVED RESULT The Documents directory becomes full of drafts and temporary files which are hard to manage. EXPECTED RESULT The Documents directory only contains files explicitly saved there by the user. SOFTWARE/OS VERSIONS Linux: KDE neon KDE Plasma Version: 5.25.5 KDE Frameworks Version: 5.98.0 Qt Version: 5.15.6 ADDITIONAL INFORMATION
I think the best options are to: * Store the drafts in something like ~/.cache/ghostwriter/drafts/ * hide the documents `.untitled.ghost{.backup}` and if they do not save on exit, remove it. Then when the program starts you could even look for these documents at startup and as about recovery, perhaps...
*** Bug 468011 has been marked as a duplicate of this bug. ***