Linux Trash implementation: Correct place for a Trash Log?
0
votes
1
answer
85
views
I am working on a Trash implementation and would like to store a log for every deletion. I have reviewed the [Freedesktop Trash Specification](https://specifications.freedesktop.org/trash-spec/trashspec-latest.html) but couldn't find any information about where to store a trash log. What would be the best and most logical place to store a trash log?
I have considered several options including:
- Storing the log file in
.local/share/Trash/info/trashlog.trashinfo
, together with the other Trash Info files.
- Creating a separate directory for the log file, such as .local/share/Trash/trashlog
, to avoid cluttering the directory with other files.
- Storing the log file in the top directory of .local/share/Trash
, alongside the files and info directories.
- Storing the log file in /var/log
, where logs are usually stored.
- Not storing a trash log at all, if it is considered unnecessary or pointless.
Please provide your recommendation on the most appropriate location for storing the trash log, and explain why that location is the best choice. Thank you.
Asked by 127 001
(3 rep)
Mar 16, 2023, 05:04 AM
Last activity: Mar 16, 2023, 08:05 AM
Last activity: Mar 16, 2023, 08:05 AM