Pre-focused / pre-selected files sometimes cannot be interacted with keyboard shortcuts, when folder is opened via another application
Affected version
- Nightly flatpak: Can't test the flatpaked version because this depends on being able to call Nautilus from another app
- Other: 44.1 and 44.0 from Fedora 38, 43.x from Fedora 37
Steps to reproduce
- Set Nautilus to listview mode, then close Nautilus (or at least close the tab of the folder of concern for the following steps).
- Download a video (from YouTube or wherever) using Video Downloader
- When the download completes, click "Open Download Location"
- Nautilus opens (and is focused), with the correct folder and the file apparently pre-selected/pre-focused...
- Try to rename (with
F2
), cut or copy (withCtrl+X
orCtrl+C
), or to delete (Delete
key) the file using keyboard shortcuts, without clicking to forcefully re-select the file (if the Nautilus window was not focused, just focus the window by clicking its headerbar)
Current behavior
Oftentimes, nothing happens: rename dialog does not show up, cut/copy does not occur, deletion does not occur, etc.
This might not happen in grid/icon view mode, it seems to happen most often with listview mode, I think?
Sometimes, strangely enough, it might work without problems. When trying to do the same thing with Eye of GNOME, the pre-selected file in the window that opens with Nautilus doesn't always exhibit the problem, but I think I've seen the issue happen with EOG too. VideoDownloader is just a lot more consistent at triggering it, especially with large folders full of videos where there is plenty of scrolling needed in Nautilus. But even with VideoDownloader, sometimes the issue does not occur. As if issue #2826 (closed) influenced this somehow, or there was a race condition of some kind...
Expected behavior
It should all work all the time ;)
Additional information
I think this used to work fine in versions prior to the GTK4/listview port.