Bug 123120

Summary: Delete (Move to trash) fails if you don't own the directory.
Product: [Applications] digikam Reporter: Maimon Mons <mmcmonster>
Component: Database-TrashAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: adam.foerster, caulier.gilles
Priority: NOR    
Version: 0.8.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 5.7.0
Sentry Crash Report:

Description Maimon Mons 2006-03-05 14:26:41 UTC
Version:           0.8.1 (using KDE KDE 3.4.3)
Installed from:    Ubuntu Packages
OS:                Linux

My setup:
Ubuntu (not Kubuntu) version 5.10.
Digikam downloaded via apt-get from http://www.mpe.mpg.de/~ach/kubuntu/breezy ./
Digikam version 0.8.1

The directory is owned by user1, with all files with permissions a+rw, and directories . and .. with permissions a+rwx.

User2 runs digikam and selects a picture and tries to move it to trash.

The error message is "Could not rename file /home/user2/Pictures/Personal/2006/2006 - India/img_2280.jpg."
Comment 1 Gerrit Hannaert 2006-06-25 12:03:45 UTC
I'm running Ubuntu Dapper and had the same trouble with a directory I *own*. Oddly I can rotate pictures, but I cannot delete it. I run Gnome normally.

Apparently this could be a dupe of bug 98231 since it was "fixed" on my system as follows:
ln -s ~/.Trash/ ~/Desktop/Trash
Comment 2 alan 2007-01-22 20:08:36 UTC
I had that problem too and it wasn't until I looked at this bug report that I discovered the solution.  Surely this is the sort of thing that should work out of the box even for Gnome users.
Comment 3 Mikolaj Machowski 2007-11-21 21:51:17 UTC
For me it works. I have Mandriva. According to freedesktop.org specs Trash directory should be in: $XDG_DATA_HOME/Trash. When $XDG_DATA_HOME not defined it should be $HOME/.local/share/Trash. And that is the case here.

Also digiKam uses KDE libs which are handling system URLs. So, if problem exists (and I highly doubt it), it exists on completely different level and should be reported to kdelibs.

Closing as invalid.
Comment 4 adam foerster 2008-11-28 02:40:05 UTC
I'm having the same problem on Ubuntu 8.10. Tried the ln -s ~/.Trash/ ~/Desktop/Trash solution, but it didn't work, any other ideas? Somebody?
Comment 5 caulier.gilles 2017-07-23 08:29:04 UTC
This problem is relevant of digiKam trash files management. Since 5.0.0 we use an internal solution instead the desktop trash. It will never reproducible.