LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Rate this Entry

After quite a long time and many failed attempts, I've managed to get Dolphin to "see" the trash bin on a partition it missed

Posted 05-29-2019 at 04:13 PM by the dsc
Updated 10-11-2020 at 05:02 PM by the dsc

For some reason, and I can't fathom what, Dolphin only saw the home's trash and two additional partitions, but missed another one. Even PCManFM-QT was able to see and use that trash partition, while files deleted there wouldn't show up on Dolphin/Konqueror (which wouldn't delete them when emptying), and files over there deleted from D/K would be dumbly moved to the home partition.

I'm sure that besides trying to create brand new Trash folders, I've even tried to copy (preserving permissions) the empty .Trash folders just to be sure at some point, and also having a .Trash-1000 (UID) symlink just in case, but it never worked.

Somehow it worked today. Coincidently or not, I've also edited a Dolphin-specific settings file, ktrashrc, adding specific configs for all folders. But it didn't work immediately after doing just that. I did it and then copied and symlinked redundantly an empty trash folder, then it worked.

I can only imagine I've not really correctly copied the permissions before, and/or yet, it's critical whether the trash folder is .Trash/UID vs .Trash-UID, with the redundant symlink being just useless, not really "seen" by the program, somehow.


____________________


https://www.linuxquestions.org/quest...ml#post6172658

Quote:
Originally Posted by the dsc View Post
Sorry for the "necromancing," it' still relevant to me now, so I think it may be to others as well.

It is possible to not deactivate completely the trash on KDE or KDE apps (Dolphin) and still have the correct behavior, not moving trash between partitions.


Apparently it's a bug/feature with KDE/Dolphin and the permissions for the .Trash-$UID folder at the root of a given partition.



From: https://forum.kde.org/viewtopic.php?...136865#p432884



I've chmod'ed the root partition of a mounted removable hdd with "chmod -R 0700 .Trash-1000/" (as root) and now I can see that trashing from that partition with Dolphin won't have the files moved to ~/.local/share/Trash at the ssd anymore.

I don't know how permanent it is with removable drives, but I guess it's as permanent as it would be with an "internal" drive, as I'm not relying on fstab.


PCManFM and PCManFM-qt continue to behave correctly after the chmod, hopefully that's the same with any other file manager.


The "trash" section on Dolphin's settings now even shows a whole new thing where you can select different settings for trash cans at different partitions.
Posted in Uncategorized
Views 546 Comments 0
« Prev     Main     Next »
Total Comments 0

Comments

 

  



All times are GMT -5. The time now is 03:40 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration