Apparently, Prism Launcher chose to adhere to the idiotic principle of the hidden “trashbin”, .Trash-$(uid), invented by Ubuntu. Even though it’s based on QT. This can’t be disabled. It accumulated 139 GB of literal Trash, fully replaceable, over time. Just … why? There’s even an open issue about this, for over a year, referenced multiple times. I guess I have another point on my agenda.
I’m more of a dust man, myself. It runs recursively so it’s easy to pinpoint the culprit.
[Image source: the project’s README]
Your desktop environment should have settings for when to clear the trash. You can also use autotrash to clear it automatically.
The Problem is: I don’t have a DE, and therefore didn’t realize programs would still try to use trashbins.
All .Trash-1000 files appears in your trashbin no? At least is how is working for me.
Hard delete used to be in the drop-down along with move to Trash, since I rarely accidentally delete things and when I do I have backups, I much preferred that arrangement.
I use ncdu. It shows what folders/files are actually eating up all your space.
the hidden “trashbin”, .Trash-$(uid), invented by Ubuntu
This isn’t some “idiotic principle invented by Ubuntu”, it just follows the freedesktop.org Trash specification. For many users, it can be really beneficial, see also the spec’s introduction:
An ability to recover accidentally deleted files has become the de facto standard for today’s desktop user experience.
Users do not expect that anything they delete is permanently gone. Instead, they are used to a “Trash can” metaphor. A deleted document ends up in a “Trash can”, and stays there at least for some time — until the can is manually or automatically cleaned.
Whether an application like Prism Launcher should use the trash can or delete the files directly is an entirely different question.
But why wouldn’t they use .local/share/Trash instead? Isn’t that supposed to be a unified directory for that very purpose?
Because that would take a long time if you deleted a large file in another partition or drive. You could also end up not having enough space to move the file to trash and if the trash directory is on an SSD, it would add a lot of unnecessary wear to it.
To explain it a bit further: when you move a file/directory on the same mount point, moving the file/directory is essentially just a rename operation, which doesn’t involve copying the data itself and is a very cheap operation. If you move a file/directory across mount points, you need to (recursively) copy the file/directory, copy file metadata and (recursively) delete the old file/directory, which is slow and error-prone.
This isn’t some “idiotic principle invented by Ubuntu”, it just follows the freedesktop Trash specification
So an idiotic spec invented by freedesktop then
Doesn’t people use a disk usage scanner every once in a while to find out if there’s something hogging space?
I do, except I always used du -hs *, which does not include hidden (.-Prefixed) files. So a double trap.
If you have 4 TB disk, you don’t care until it is getting full.