GNOME Bugzilla – Bug 545950
cheese should ask to delete files if moving to trash fails
Last modified: 2008-08-04 08:53:16 UTC
I have the xdg video dir in a fat32 partition and for some reason there is no trash dir there so when I try to remove items from the thumbview I just get an error complaining that they cannot be moved to the trash. I think we should ask the user if he wants to permanently delete the file when g_file_trash fails.
Hey I've just seen there is a TODO note about this in the source code :P
Created attachment 115768 [details] [review] delete file if move to trash fails Attaching a patch. I think it's ready to commit so if nobody complains I'll commit it later today. If you want to test it just run chmod -x .local/share/Trash (or your trash dir), to temporary disable the trash (chmod +x to restore it). Backup your files and try Move to trash and Move all to trash actions. I tried to resemble the usual nautilus behavior and strings. TODO: add a shift key shortcut to bypass trash and delete directly to MoveToTrash and RemoveAll actions (still wondering how to do it, hints?)
Committed.