scripts: NAUTILUS_SCRIPT_SELECTED_FILE_PATHS doesn't work when searching on Nautilus
Steps to reproduce
- Create a simple script under
~/.local/share/nautilus/scripts
like this one, which I use a lot:
#!/bin/sh
gedit "admin://`echo $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS`"
- Verify that it works on when right clicking on a single file
- Then try to search for the file and use the same script by right clicking on the file when searching
Current behavior
The script doesn't work, because the path of the selected file is wrong when you do a search.
Expected behavior
$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS should return the file path even when you do a search. It should be easily achievable since the option "Open Item Location" when right clicking on a file, while searching, knows the correct file path.
Additional information
distribution: arch linux nautilus ver: 3.30.4