files
files copied to clipboard
When opened with specific file to select, the view is not showing that file
What Happened?
When i select "Open in File Browser..." in Rapid Photo Downloader, Files is opened and the file is selected, but it is not shown in the view. I have to scroll down to see it.
Demonstration Video: https://www.youtube.com/watch?v=QoJYM3_LbUE
Rapid Photo Downloader uses the Python Library show-in-file-manager to do it, which basically does:
io.elementary.files FILE
With that, the issue is easily reproducible.
Steps to Reproduce
- Open Terminal
- Open Files
- Copy this command in Terminal
io.elementary.files, add a Whitespace - Scroll down in a folder with many files in Files and drag-and-drop a file from far down into the terminal, to get it's full path
- Close Files
- Run the command in Terminal, e.g.
io.elementary.files '/home/davidak/2023-06-10_14-28-09.mkv' - Files is opened and you see the folder the selected file is in, you have to manually scroll down to see it
Expected Behavior
The view is scrolled automatically to show the selected file.
OS Version
Other Linux NixOS 22.11.4479.d4a9ff82fc1
Software Version
Older release (I have not run all updates) elementary-files-6.2.1
Log Output
No response
Hardware Info
No response
The command line that the FileManager1 service uses is io.elementary.files -t [URL]. Using either command in a terminal works as expected for me provided Files is not already running. I find that if Files is already running and is already showing the required folder then it does not scroll to the requested item so there is an issue here. I am running the latest version but I do not think this part of the code was touched recently.
Pushing to queue for fixes in the Gtk4 of Files.
Decided to fix now as some Gtk3 work is still happening and it touches parts of the code that will not change in Gtk4.
@davidak Are you able to test the linked PR? Unfortunately it has not attracted attention from reviewers yet.