Bug 486906 - Dolphin tries to move files to trash if no space is left
Summary: Dolphin tries to move files to trash if no space is left
Status: RESOLVED FIXED
Alias: None
Product: dolphin
Classification: Applications
Component: general (other bugs)
Version First Reported In: 23.08.5
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-11 21:43 UTC by jakobdev
Modified: 2025-08-12 20:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 25.07.70
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jakobdev 2024-05-11 21:43:19 UTC
When Dolphin moves a file to the trash, 2 things are happening:
1. The file itself is moved to ~/.local/share/Trash/files
2. A .trashinfo file is created under ~/.local/share/Trash/info, which hols information about the trashed file

If you try to move a file to the trash while no space is left, Dolphin will move the file correctyl to ~/.local/share/Trash/files. As no space is left, the .trashinfo file can't be created however. When you visit the Trash, the files don't apper there, as the .trashinfo file is missing. The only way to delete files at this point (what you should do to free up some space) is knowing  in which directory the files were moved and deleting them there.
Comment 1 TraceyC 2025-07-25 02:17:45 UTC
Thanks for the bug report. I'm sorry we weren't able to get to this yet. There have been many fixes and improvements since this was reported, and this issue may have been fixed.

Can you please re-test on your system with Dolphin 25.04.3 or later and let us know if you can still reproduce the problem? If you can, please set this report back to REPORTED. Thanks!
Comment 2 Bug Janitor Service 2025-08-09 03:46:40 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 3 jakobdev 2025-08-09 10:46:39 UTC
The bug still exists. You can test this by yourself by making running these command (~/.local/share/Trash/info needs to be empty):

dd if=/dev/zero of=/tmp/full bs=1024 count=100
mkfs.ext4 /tmp/full
sudo mount -o loop /tmp/full ~/.local/share/Trash/info
sudo chown -R $USER ~/.local/share/Trash/info
dd if=/dev/zero of=~/.local/share/Trash/info/full bs=1024 count=100

Now ~/.local/share/Trash/info is on a full filesystem and you can reproduce this bug by moving files to the Trash.
Comment 4 TraceyC 2025-08-12 20:58:11 UTC
(In reply to jakobdev from comment #3)
Thanks for confirming. I tested on git-master and cannot reproduce
I followed your steps to create a full Trash folder (thanks for those!)
When I try to move a file in Dolphin to the Trash folder, the file stays put and Dolphin displays an error

Could not write to file /home/tracey/.local/share/Trash/info/log.txt.trashinfo.

If you continue to experience this bug with Dolphin 25.08.0, when that reaches your system, please feel free to reopen this report.


As a note, this command fails with "no such file or directory":
> dd if=/dev/zero of=~/.local/share/Trash/info/full bs=1024 count=100

It needs to have the home directory spelled out
> dd if=/dev/zero of=/home/$USER/.local/share/Trash/info/full bs=1024 count=100