Undoing Move to Trash has no effect if a directory is entered via a symlink
Steps to reproduce:
- Navigate to a directory in Thunar via a symlink.
- Move a file or a dir into Trash.
- Trigger the Undo action.
Actual results:
The notification "Undo performed
", "Trash operation was undone
" is shown, but the file/dir is not restored from Trash.
Expected results:
The same notification is shown and the file/dir is restored from Trash.
Note:
While fixing this bug, ensure that undoing a trashing of a file does not silently overwrite a same-name file/dir created by an external program in place of the trashed file. This correctly fails in Dolphin with the error "A file named <...> already exists.
".