KDE 4.4.x trash bin location/behaviour

Kevin Krammer kevin.krammer at gmx.at
Mon Sep 6 07:54:14 BST 2010


On Sunday, 2010-09-05, Nebojsa Trpkovic wrote:
> Hello.
> 
> I have OS installed on SSD.
> My /home directory is on SSD, too.
> I use KDE 4.4.5.
> 
> Everything big is on NFS mounted inside my home dir.
> 
> Deleting (without holding shift-key) some file from NFS moves that file
> to SSD as there is trash bin.
> That's not good.
> 
> I've tried to remove .Trash dir from top level of mounted NFS partition
> and first file moved to trash recreated that dir.
> So, my user had sufficient permissions to create .Trash dir, but
> (and that's sad part of the story)
> instead of ending in
> 
> /home/myuser/some-mount/.Trash
> 
> file ended in
> 
> /home/myuser/.local/share/Trash
> 
> Is it possible to set KDE to make and use trash bin on each filesystem
> separately, avoiding copying between partitions, disks and network storage?

I think this should be supported.

The spec [1] says among other things: "(1) An administrator can create an 
$topdir/.Trash directory. The permissions on this directories should permit 
all users who can trash files at all to write in it.; and the “sticky bit” in 
the permissions must be set, if the file system supports it."

Where $topdir refers to the top most directory of the network or removable 
volume.

In your case it might have been a problem of the directory on the NFS mount 
not having the "sticky bit". Try removing /home/myuser/some-mount/.Trash, 
creating it as root with write permissions for the user or group and setting 
the "sticky bit", e.g. chmod a+t  /home/myuser/some-mount/.Trash

Cheers,
Kevin

-- 
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde/attachments/20100906/98abdd74/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list