this post was submitted on 11 Nov 2024
149 points (91.2% liked)

Linux

48182 readers
1901 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] thingsiplay@beehaw.org 19 points 4 days ago* (last edited 4 days ago)

I use command trash-empty to empty all trashcan of all the users, after each system update. It's a non standard program, but most likely available in your distributions repository: https://github.com/andreafrancia/trash-cli And my alias/function will show each file that is about being deleted (just put it in .bashrc, if you have installed trash-cli, which includes trash-empty):

old function (click to expand)

empty() {
    echo "Files to delete:"
    trash-empty -f --dry-run |
        awk '{print $3}' |
        grep -vF '/info/'
    echo
    trash-empty
}

Edit: After I posted I just realized there is a more straightforward way of doing it:

New and more simple alias:

alias empty='trash-empty -f --dry-run ; trash-empty'

This searches all trash cans, lists all files it has found to be deleted, then lists all directories it looked under and then asks if you want really delete. With trash-empty -f it deletes without asking.