GNOME Bugzilla – Bug 320215
file names sent to scripts without subfolders
Last modified: 2008-08-31 07:41:08 UTC
Please describe the problem: Nautilus scripts will receive unly file names in the $1, $2, ..., $* and $* shell parameters even if files from subflders are selected. In the latest Nautilus version, 2.12, folders can be expanded in place and files selected. Steps to reproduce: 1. Expand a subfolder. 2. Select a file in this subfolder. 3. Right-click and select a Nautilus Script. Actual results: only file names are passed to the script Expected results: subfolder plus file name should be passed Does this happen every time? yes Other information:
Created attachment 54146 [details] selected files Multiple files selected in subfolders.
Created attachment 54147 [details] environment variables Environment variables sent to the script. Have a look at $1 and $*. The value of $* is a bit confusing because of the spaces in the file names, but you can get the idea. A debug script was used for this.
Created attachment 54148 [details] $@ variable The value of the $@ variable, one file name per line.
Created attachment 54178 [details] NautilusScriptsDebug NautilusScriptsDebug was used to get the attached screenshot, it can help debugging these type of issues. See http://marius.scurtescu.com/?p=111
Thanks for your bug. Please read the description of the settings, this bug is not a crasher but just a normal issue.
I am seeing a similar problem with $NAUTILUS_SCRIPT_CURRENT_URI in a script I am using. Calling the script on a file in a subfolder in list view fails because the script has the wrong path for the selected file. (It's a crasher because the script fails... ? ;)
*** Bug 549816 has been marked as a duplicate of this bug. ***
Still there in 2.22 as for last duplicate.
*** Bug 316230 has been marked as a duplicate of this bug. ***
Fixed in trunk: http://svn.gnome.org/viewvc/nautilus?view=revision&revision=14545 Closing.