[Bug 1665878] [NEW] Nautilus scripts can't handle file/foldernames containing % character

Michael Kuster 1665878 at bugs.launchpad.net
Sat Feb 18 12:06:02 UTC 2017


Public bug reported:

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)"

** Affects: at-spi2-core (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: argument nautilus script

-- 
You received this bug notification because you are a member of
Accessibility, which is subscribed to at-spi2-core in Ubuntu.
https://bugs.launchpad.net/bugs/1665878

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/at-spi2-core/+bug/1665878/+subscriptions



More information about the Ubuntu-accessibility-bugs mailing list