Discussion:
Mag7: Digikam deletes files without sending to trash
(too old to reply)
Ar
2019-09-06 14:03:00 UTC
Permalink
Since upgrading to Mageia 7, the application Digikam has deleted photos
I deleted by accident (accidental mouse click when hovering), straight
away forever - WITHOUT sending them to trash.

They are not visible in Dolphin's default trash can, and they are not
visible in /home/username/.local/share/Trash/

They are just gone. Anyone else have this problem, this is unacceptable
as photos are not replaceable. The right click menu shows "send to
trash", it does not do this, just deletes straight away. I can't find a
setting to check on this behaviour.

Has a setting changed, or do I report this as a bug?
Bit Twister
2019-09-06 14:09:02 UTC
Permalink
Post by Ar
Since upgrading to Mageia 7, the application Digikam has deleted photos
I deleted by accident (accidental mouse click when hovering), straight
away forever - WITHOUT sending them to trash.
I would verify that everything in your user account is owned by you.

find $HOME \( -not -user $USER -or -not -group $USER \) -exec ls -al '{}' \;
Ar
2019-09-07 16:06:56 UTC
Permalink
Post by Bit Twister
Post by Ar
Since upgrading to Mageia 7, the application Digikam has deleted photos
I deleted by accident (accidental mouse click when hovering), straight
away forever - WITHOUT sending them to trash.
I would verify that everything in your user account is owned by you.
find $HOME \( -not -user $USER -or -not -group $USER \) -exec ls -al '{}' \;
That commend didn't show anything (I adjusted the path hopefully
correctly, as the files are on a different drive). All directories and
files have the same user and group as other files I've created in $HOME.

Anyway, I remember that the directory that Digikam is using for the
photos were originally on an NTFS drive, and after upgrade are on a ext4
drive, so I had to give the directories and files permissions for Linux
to see the files.

User name/group/date removed from listing below.. These are the
permissions I gave the directories after the hard drive move from NTFS
to ext4:

4 drwxr--r-- 5 2018-07/
4 drwxr--r-- 6 2018-08/

Below is the permissions Digikam is creating for directories I create
when I make a new gallery:

4 drwxrwxr-x 2 2019-06/
4 drwxrwxr-x 2 2019-07/
4 drwxrwxr-x 6 2019-08/

Should I change the other directories to the same r-w-x permissions as
Digikam has created?

Second, irrespective of the directory permissions, deleting a file from
what were NTFS directories (now ext4) or directories Digikam has created
makes no difference, the files just delete straight away, no moving into
the trash / recycle bin. I didn't have a delete problem before the
Mageia 7 upgrade.

Checking permissions of files in directories, I have:

Files from NTFS > ext4 change
-rwxr--r-- 1 Aug 13 2016 DSC_2246.NEF*
-rwxr--r-- 1 Aug 13 2016 DSC_2247.NEF*

What Digikam is producing now:
-rw-rw-r-- 1 Jun 28 14:02 DSC_6751.NEF
-rw-rw-r-- 1 Jun 29 18:08 DSC_6752.NEF

Should I also adjust the old NTFS files to the r-w-x that Digikam is using?
Loading...