Bug#557663: kdesktop: KDE trash bin does not work in over-quota situations
Package: kdesktop
Version: 4:3.5.9.dfsg.1-6
Severity: normal
When our users exceed their disk quota, they often fall victim of this
perculiar condition when KDE's trash can stops working properly.
They try to delete some files to clear up the disk space, and then
proceed to empty the trash can, which does not work, resulting
in a broken Trash can and the users still being over quota.
The reason it does not work is that KDE fails to write its meta
files into ~/.local/share/Trash/info/deleted_file.trashinfo.
The .trashinfo file ends up truncated to zero size (because the
user is over the disk quota), but KDE proceeds to still place
the deleted file into ~/.local/share/Trash/files/. Later,
when a user right-clicks the trash can and selects
"Empty trash bin", KDE reports that it
"Could not read /path/to/deleted_file.trashinfo" and fails the
operation. The user ends up with a trash can full of deleted
data, which is not deletable in the normal way.
Also, such trash can appears empty when double-clicking the
trash can icon on the desktop.
The workaround is to manually delete data from
~/.local/share/Trash/files/.
I think that the expected behaviour for KDE would be to either:
- fail to move the file into the Trash if it cannot
write a proper .trashinfo file, or
- offer to permanently delete the file instead, or
- deal gracefully with the situation when the .trashinfo
file is corrupted or missing.
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages kdesktop depends on:
ii kdebase-bin 4:3.5.9.dfsg.1-6 core binaries for the KDE base mod
ii kdeeject 4:3.5.9.dfsg.1-6 script used by KDE to eject remova
ii kdelibs4c2a 4:3.5.10.dfsg.1-0lenny3 core libraries and binaries for al
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libgl1-mesa-glx 7.0.3-7 A free implementation of the OpenG
ii libglu1-mesa [li 7.0.3-7 The OpenGL utility library (GLU)
ii libkonq4 4:3.5.9.dfsg.1-6 core libraries for Konqueror
ii libqt3-mt 3:3.3.8b-5+b1 Qt GUI Library (Threaded runtime v
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii libx11-6 2:1.1.5-2 X11 client-side library
ii libxau6 1:1.0.3-3 X11 authorisation library
ii libxcursor1 1:1.1.9-1 X cursor management library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxss1 1:1.1.3-1 X11 Screen Saver extension library
ii libxxf86misc1 1:1.0.1-3 X11 XFree86 miscellaneous extensio
kdesktop recommends no packages.
kdesktop suggests no packages.
-- no debconf information
Reply to: