Possible bug? Permanently Remove filenames with a space.
Posted: Thu Dec 13, 2012 5:06 pm
On Linux Mint Maya Xfce, in Thunar, the Permanently Remove option will not remove filenames that have a space in them. It will go through the motions of deleting the file, including the user confirmation, but no file with a space (or possibly other atypical characters) in it will be removed.
By editing /usr/bin/mint-xfce-delete, I managed to fix this behavior by replacing this line:
with these lines:
I am not sure why rm -rf "$file" won't work in instances where the filename has a space, because the syntax appears correct, as $file has been defined earlier as "$*", which should include all the user-selected files and folders passed from Thunar. Somehow the space in the filename jams the works.
I am new to Linux, so perhaps someone can explain this for me. If I am mistaken and there is something amiss with my system, I'd like to know that as well.
By editing /usr/bin/mint-xfce-delete, I managed to fix this behavior by replacing this line:
Code: Select all
rm -rf "$file" | tee | sleep 3 |(zenity --title="$title " --progress --pulsate --auto-kill --auto-close --text "<b>$title1 </b>" )
Code: Select all
until [ "$*" = "" ]
do
rm -rf "$1"
shift
done
#rm -rf "$file" | tee | sleep 3 |(zenity --title="$title " --progress --pulsate --auto-kill --auto-close --text "<b>$title1 </b>" )
I am new to Linux, so perhaps someone can explain this for me. If I am mistaken and there is something amiss with my system, I'd like to know that as well.