Starred and deleted files when undone end up in a weird state.
Problem
Whenever I want to star a file, I cannot do it from the context menu any more. Instead, I figured out that I can star the file by dragging it onto to Starred directory in the left panel. This creates a shortcut for that file in the Starred section, and also adds a star to the view of the original location. So far so good.
However, when I am in the Starred view and delete the file, but change my mind right away and click Undo, the file does not come back to the Starred view any more, but the little star is still shown at its original location, but it cannot be unstarred because there is no such option in the context menu (only if the context menu is opened in the Starred view), but it is not possible to move the file into the Starred view, because Nautilus claims the file is non-existant in journalctl, but the file is shown in its original location and ls
and vi
have no trouble opening and editing it.
Affected Version
- Version: nautilus-47.0-1.fc41.x86_64
- Distribution: Fedora 41
- Also happens with development version: Yes
Steps to reproduce
- Open Nautilus and create some files ().
- Drag one of the files into Starred ().
- Switch to the Starred view and confirm the file is listed there ().
- Delete the file but use the Undo button to revert the operation, see that the file did not come back to the view ().
- Switch back to its original location and see that the file exists there and still is starred ().
- Try to unstar it through the context menu. This will not work as the option is not there ().
- Try to move drag it to the Starred view again, nothing happens and the application complains about it in journalctl, see below.
- Open the location in Terminal and confirm that the file still exists.
Expected Behavior
The application should restore the complete status quo, after the Undo button was pressed and the file should reappear in the Starred view as it was there before.
Actual Behavior
See above.
Additional Information
The complaints from journalctl:
Oct 21 12:39:04 localhost-live nautilus[6123]: Attempted to add a non-existent file to the view.