Nautilus scripts can't handle file/foldernames containing % character

Bug #1665878 reported by Michael Kuster
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
at-spi2-core (Ubuntu)
New
Undecided
Unassigned

Bug Description

This bug affects Ubuntu 14.04.5 and 16.04.1, most likely all others

If a file/foldername contains the % character, the script won't run as espected if you use $1 or $@ to get the arguments for the script:
If the file name is 'filename %123.xxx' you will get 'filename 23.xxx' as the argument $1.

The bug can be demonstated with this simple script:
#!/bin/bash
#path: ~/.local/share/nautilus/scripts
zenity --window-icon=info --info --title="Info" --text="If there is a % in the filename, you can see than \
here goes something wrong: \n\n'$1'\n'$(echo ${NAUTILUS_SCRIPT_SELECTED_FILE_PATHS##*/})' (this is like it should be)"

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.