After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 320215 - file names sent to scripts without subfolders
file names sent to scripts without subfolders
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Scripts facilities
2.22.x
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
: 316230 549816 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-10-30 06:58 UTC by Marius Scurtescu
Modified: 2008-08-31 07:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.21/2.22


Attachments
selected files (89.78 KB, image/png)
2005-10-31 18:06 UTC, Marius Scurtescu
Details
environment variables (54.47 KB, image/png)
2005-10-31 18:09 UTC, Marius Scurtescu
Details
$@ variable (15.63 KB, image/png)
2005-10-31 18:10 UTC, Marius Scurtescu
Details
NautilusScriptsDebug (629 bytes, application/x-gzip)
2005-11-01 06:14 UTC, Marius Scurtescu
Details

Description Marius Scurtescu 2005-10-30 06:58:51 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:
Comment 1 Marius Scurtescu 2005-10-31 18:06:30 UTC
Created attachment 54146 [details]
selected files

Multiple files selected in subfolders.
Comment 2 Marius Scurtescu 2005-10-31 18:09:34 UTC
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.
Comment 3 Marius Scurtescu 2005-10-31 18:10:52 UTC
Created attachment 54148 [details]
$@ variable

The value of the $@ variable, one file name per line.
Comment 4 Marius Scurtescu 2005-11-01 06:14:14 UTC
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
Comment 5 Sebastien Bacher 2005-11-13 16:29:11 UTC
Thanks for your bug. Please read the description of the settings, this bug is
not a crasher but just a normal issue.
Comment 6 Joachim Noreiko 2006-07-13 21:33:48 UTC
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... ? ;)
Comment 7 Cosimo Cecchi 2008-08-30 10:37:34 UTC
*** Bug 549816 has been marked as a duplicate of this bug. ***
Comment 8 Cosimo Cecchi 2008-08-30 10:38:09 UTC
Still there in 2.22 as for last duplicate.
Comment 9 Cosimo Cecchi 2008-08-30 10:49:25 UTC
*** Bug 316230 has been marked as a duplicate of this bug. ***
Comment 10 Christian Neumair 2008-08-31 07:41:08 UTC
Fixed in trunk:

http://svn.gnome.org/viewvc/nautilus?view=revision&revision=14545

Closing.