GNOME Bugzilla – Bug 309729
Spurious "file exists" error when saving to dirname/filename
Last modified: 2006-02-16 13:21:18 UTC
Version details: gtk+ 2.6.8.1 Distribution/Version: Debian sid Do a "Save As" and navigate to a directory that exists. In the filename field, type: dirname/filename.ext where dirname is a subdirectory that already exists, and filename.ext is a filename which does not yet exist. A "File exists" confirmation dialog pops up, falsely saying that the file already exists. Sven suggested on IRC that it might be considered a gtk+ bug, but then said the fix would be in GIMP: "either we revert to the 2.2 behaviour or we switch to gnome-vfs". So I'm filing this on GIMP, but feel free to move it to GTK+ if that's a more appropriate place.
The culprit is that we are calling gtk_file_chooser_set_uri() as a way to find out if the file exists or not. This seemed to be a reasonable hack to work around the problem that we cannot find out if a remote file exists. This will only be necessary if we actually add code to save to remote locations and unset the local-only property of the file-chooser.
GTK+ 2.8 provides the API we need: gtk_file_chooser_set_do_overwrite_confirmation().
I am using gimp built against gtk+-2.8.4 and still get this problem: http://carol.gimp.org/files/save-misinformation.png
Not surprisingly. We do not yet depend on 2.8 and thus we are not yet using the API that will fix the problem.
*** Bug 324318 has been marked as a duplicate of this bug. ***
*** Bug 324811 has been marked as a duplicate of this bug. ***
2005-12-28 Michael Natterer <mitch@gimp.org> * app/widgets/gimpfiledialog.[ch]: set the new "do-overwrite-confirmation" property on GtkFileChooser. Removed gimp_file_overwrite_dialog(). * app/dialogs/file-save-dialog.c (file_save_dialog_check_uri): removed broken code which tried to figure if a file exists. Fixes bug #309729. * app/widgets/gimpdnd-xds.c: added gimp_file_overwrite_dialog() here as private utility function.
*** Bug 325576 has been marked as a duplicate of this bug. ***
*** Bug 325679 has been marked as a duplicate of this bug. ***
*** Bug 325749 has been marked as a duplicate of this bug. ***
*** Bug 326853 has been marked as a duplicate of this bug. ***
*** Bug 330030 has been marked as a duplicate of this bug. ***
*** Bug 329979 has been marked as a duplicate of this bug. ***
*** Bug 327289 has been marked as a duplicate of this bug. ***
*** Bug 331343 has been marked as a duplicate of this bug. ***