GNOME Bugzilla – Bug 632427
add command line option to select file
Last modified: 2011-06-27 20:13:33 UTC
From another user wish at Launchpad: ''' When I click "open in folder" in mozilla firefox download window, for example, i expect nautilus that will open folder with downloaded file AND select downloaded file. But i have only open folder. so i propose add command line to nautilus to select file ''' And NO, this bug is NOT related to using DBUS to select files... it's a simple command line option, like this: nautilus --select /home/deters/Downloads/somefile.avi or this: nautilus --select *.avi /home/deters/Downloads Nautilus already can do this by using the "Selection" dialog (Ctrl+S)... why can't do it from the command line?
Created attachment 173993 [details] [review] Added a --select option to open nautilus and select a file given an URI Usage: nautilus --select "file:///home/deters/file.txt" /home/deters
Created attachment 174023 [details] [review] Added a --select option to open nautilus and select the given files Usage (one window for each selected file): nautilus --select ~/some_file.txt ~/another_file_to_be_selected.txt
*** Bug 647204 has been marked as a duplicate of this bug. ***
deters: thanks for the patch; however, adding a new command line switch there is not the right thing to do. Instead, path/uris pointing to a file should just open the parent directory and select that file. I pushed a fix to git master that does this. Closing as FIXED.
The "--select" switch came from dolphin... But your solution is very elegant!!! and needs only 20 lines! Next step: fill bug reports at firefox and chrome to call nautilus with complete path (including filename) :) Thank you!!
*** Bug 647652 has been marked as a duplicate of this bug. ***
*** Bug 131259 has been marked as a duplicate of this bug. ***