Nautilus passes file list to scripts without quotes

Bug #1003424 reported by Lisa Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

I'm using very simple scripts, but when the file names have spaces in then, scripts won't function on the files.
Using two files: "myfile one.txt" "myfile two.txt"

What gets passed to the scripts is: myfile one.txt myfile two.txt

No way to determine what the files are, or to act on them.

Putting quotes around each file name would fix it I believe.

Ubuntu 12.04 Desktop AMD64 with all the updates installed as of today.

lisa@lisa-Inspiron-1545:~/.gnome2/nautilus-scripts$ dpkg -l | grep nautilus
ii libnautilus-extension1a 1:3.4.2-0ubuntu1 libraries for nautilus components - runtime version
ii nautilus 1:3.4.2-0ubuntu1 file manager and graphical shell for GNOME
ii nautilus-data 1:3.4.2-0ubuntu1 data files for nautilus
ii nautilus-dropbox 0.7.1-2 Dropbox integration for Nautilus
ii nautilus-sendto 3.0.1-2ubuntu2 integrates Evolution and Pidgin into the Nautilus file manager
ii nautilus-sendto-empathy 3.4.2-0ubuntu1 GNOME multi-protocol chat and call client (nautilus-sendto plugin)
ii nautilus-share 0.7.3-1ubuntu2 Nautilus extension to share folder using Samba

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. The issue you are reporting is an upstream one and it would be nice if somebody having it could send the bug to the developers of the software by following the instructions at https://wiki.ubuntu.com/Bugs/Upstream/GNOME. If you have done so, please tell us the number of the upstream bug (or the link), so we can add a bugwatch that will inform us about its status. Thanks in advance.

Changed in nautilus (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

That seems to work in the current version, $1 and $2 display each the correct filename

Changed in nautilus (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.