This issue can be solved by using the “right” Trash directory…do not use the “widget”.
Open Dolphin → on left side (under places) click on Trash → hold and drag it to desktop.
If you dont have the left sidepanel, go to view->sidepanel->places
(the translation may vary…)
Here it worked as intended. If you use a self created shortcut, the icon won’t change properly. But if you drag the Trash icon/place from dolphin to the desktop it creates a proper desktop entry with changing icon…
If the suggestions from above do not work, did you already try deleting the contents of your /home/$USER/.cache directory?
Quit all programs and in the Konsole terminal emulator enter cd && sudo rm -r .cache/* and log out and in again or reboot.
This is best done before logging in at all from a tty, though.
PS: Another solution could be to temporarily disable “save user session” in System Settings.
I have to agree with Henk. Using sudo to delete user owned files is absolute nonsense and dangerous as you can easily delete more files than you really want (when you chose wrong directories)…
Don’t advertise such bad habits…
I agree. I would even go one step further and I prefer
cd /home/$USER/.cache
rm -r *
because working the working directory does not get his name for nothing. Better “go there” and then do your thing.
I have seen that a small typing error in a long path created havoc.
Well, that was done by root, but a normal user can also benefit from a good habit. Oh, and another one is to use the path completion function to avoid typing errors (and increase tyoing speed).
The background why I usually use sudo here is that in the past both in *Ubuntu and Debian there have been corrupt user cache files in several installations that were owned by root only and nobody else.
So calling this “nonsense” depends on the perspective and use case.
If rm -r /home/$USER/.cache/* does remove everything, all is fine - if it doesn’t use sudo or log in as root.
*buntu is not openSUSE or any other rpm based distribution.
And using sudo to delete files in user directories is still nonsense. IF you find that there are files in your user directory which are owned by other users/root you can still switch to use sudo/su - AFTER you have properly investigated why they are owned by them. And then delete ONLY this files with sudo and not by default all files…
Just to be clear, your .local/share/Trash should look like this:
[sfalken@T420 ~]$ ls -l .local/share/Trash/
total 0
drwxr-xr-x. 1 sfalken sfalken 0 May 27 21:19 files
drwxr-xr-x. 1 sfalken sfalken 0 May 27 21:19 info