Bug 460352 - Do not save drafts and temporary files in the Documents directory
Summary: Do not save drafts and temporary files in the Documents directory
Status: CONFIRMED
Alias: None
Product: ghostwriter
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR wishlist
Target Milestone: ---
Assignee: megan.conkle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-13 11:01 UTC by Riccardo Robecchi
Modified: 2022-12-29 12:01 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Riccardo Robecchi 2022-10-13 11:01:39 UTC
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
Comment 1 israel 2022-11-04 09:27:30 UTC
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...