easymodo / qimgv

Image viewer. Fast, easy to use. Optional video support.
GNU General Public License v3.0
2.38k stars 168 forks source link

deleted files in dm-crypt mounted filesystem have wrong path, are unable to be restored from trash #475

Open ad8e opened 1 year ago

ad8e commented 1 year ago

Kubuntu 23.04 filesystem mounted using LUKS

Steps:

  1. mount a LUKS filesystem. I used cryptsetup for this.
  2. Put any image file in the mounted filesystem. I'll assume it's located at "/media/a/fs/1.jpg".
  3. Open the new file in qimgv, delete it using qimgv.
  4. Go to Trash. Try to restore the deleted image. You will receive the error message "The directory /media/a/fs//media/a/fs/1.jpg does not exist anymore, so it is not possible to restore this item to its original location. You can either recreate that directory and use the restore operation again, or drag the item anywhere else to restore it."

Notice how the mounted path is duplicated twice: "/media/a/fs//media/a/fs/"

Deleting files using other tools (such as Dolphin) does not encounter this issue.