I expect I'm being blind and it's somewhere obvious, but I can't find any information on configuring trash in TDE.
Example questions for which I'd like to find answers: how large can it grow? how long can files stay in trash before they're deleted? where is trash actually located?
Doc
On Fri, Jan 10, 2020 at 03:37:44PM -0700, D. R. Evans wrote:
I expect I'm being blind and it's somewhere obvious, but I can't find any information on configuring trash in TDE.
Example questions for which I'd like to find answers: how large can it grow? how long can files stay in trash before they're deleted? where is trash actually located?
As far as I know, the answer to the first two questions is "as big as the available space on your hard drive" and "until you choose Empty Trash from the menu".
There aren't many options for configuring the trash as far as I can tell, but I found these:
1. Konqueror: Settings > Configure Konqueror > Behaviour
where you can configure whether items are deleted or moved to the trash.
2. On the desktop, right-click the Trash icon and choose Properties
where you can rename it and set the icon. It also reveals that the trash is controlled by the hidden ~/Desktop/trash.desktop config file.
The trash.desktop config file shows very little:
[Desktop Entry] Comment=Contains removed files EmptyIcon=trashcan_empty Encoding=UTF-8 Icon=trashcan_full Name=Trash OnlyShowIn=KDE Type=Link URL=trash:/
The location of the trash is:
~/.local/share/Trash
but you probably shouldn't mess with it, I'm not sure how resilient Konquorer is if you mess with the trash's internal structure.
(Note: these are from an older version of KDE and may not apply to the latest versions of TDE.)
Steven D'Aprano wrote on 1/10/20 5:03 PM:
On Fri, Jan 10, 2020 at 03:37:44PM -0700, D. R. Evans wrote:
I expect I'm being blind and it's somewhere obvious, but I can't find any information on configuring trash in TDE.
Example questions for which I'd like to find answers: how large can it grow? how long can files stay in trash before they're deleted? where is trash actually located?
As far as I know, the answer to the first two questions is "as big as the available space on your hard drive" and "until you choose Empty Trash from the menu".
Hmmm... I know there have been some versions of *K*DE that allowed the user to set those two values -- I certainly don't want a 4TB drive to get filled with files I no longer want; and I also don't want to have "Empty the trash" as the only option for decreasing its size. But I don't know if *T*DE has ever provided anything like that, or indeed whether recent versions of *K*DE do so... I think I must have just assumed that configuration was possible when I switched to TDE.
So I'm hoping that someone will post a different answer :-)
The location of the trash is:
~/.local/share/Trash
but you probably shouldn't mess with it, I'm not sure how resilient Konquorer is if you mess with the trash's internal structure.
And that would mean that I can't even write a script to age things out of the trash gracefully if it indeed turns out that I can't control aging or size with configuration values in the config file. Not good. In fact, so not good that I'd have to figure out some completely different trash mechanism :-(
I suppose I could create an entirely separate and rather small filesystem just for trash, but that has the distinct odour of a kludge.
Doc
PS Hmmm... after a bit of experimenting, I don't think that trash will expand to fill the disk. On the system on which I'm typing this, there seems to be a hard limit of about 30GB. I have no idea where that number comes from, though.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 2020/01/11 06:37 AM, D. R. Evans wrote:
I expect I'm being blind and it's somewhere obvious, but I can't find any information on configuring trash in TDE.
Example questions for which I'd like to find answers: how large can it grow? how long can files stay in trash before they're deleted? where is trash actually located?
Doc
Hi Evans if you are you using R14.0.x there is no such config option. If you are using R14.1.0-DEV, there is a new trash config page accessible both from TCC -> System Administration -> Trash or from right click on Trash -> Properties. Cheers Michele
On 01/10/2020 05:32 PM, Michele Calgaro via trinity-users wrote:
If you are using R14.1.0-DEV, there is a new trash config page accessible both from TCC -> System Administration ->
Cool, that will be really good to have.
In the meantime, on this Debian install there's a simple little shell command called 'autotrash' that can delete trash based on how many days it's been in the trashcan. It would be easy to make a script to run that every day or whatever.