GNOME Bugzilla – Bug 353246
Duplicate image should remember directory
Last modified: 2008-01-15 13:11:04 UTC
When I duplicate an image by pressing Ctrl-D, the save dialog for the newly created image does not default to the directory of the original image (the one I duplicated). 1. Open /path/to/somefile.jpg 2. Hit Ctrl-D. The image duplicates 3. Save the new image by pressing Ctrl-S Expected: 4. Save dialog opens in /path/to Actual: 4. Save dialog opens in $HOME
A duplicated image is treated just like a newly created image. It doesn't inherit the filename, thus the Save file-chooser uses the default directory. I don't see why this should be changed and I suggest that this is closed as NOTABUG.
I duplicate the image so that I don't accidently save it over the original image when editing it. Copying the file is annoying, since I need Nautilus for that. "Save as" before editing sucks too, because if I decide I don't want to keep my changes I'm left with a duplicate file that's messing up my directory.
I think the behavior sought by this report would be more useful than existing. Since the default directory is almost always available as one of the "quick access" options, it can be opted for with a single click of the mouse. The original image's location in the directory tree is not necessarily available in the "quick access" list and might require several more steps to locate. In addition, the user has to recall where the original is stored (I often find myself going back to the original image and performing a "cancelled" SAVE AS to determine this). This is not a critical shortcoming (nor a bug) but I would agree that the requested behavior would improve usage in many cases.
I tried to implement this by setting just the directory name as the filename of the duplicated image but this breaks in a couple of places and doesn't have the wanted effect of the save dialog. We would probably have to store dirname and basename separately in the image and quite a few places would have to be changed then.
I've implemented the suggested change in a hackish but easy way. Should be good enough for now. 2006-08-29 Sven Neumann <sven@gimp.org> * app/core/gimpimage-duplicate.c (gimp_image_duplicate) * app/widgets/gimpfiledialog.c (gimp_file_dialog_set_image): a somewhat hackish implementation of what's suggested in bug #353246. Let the save dialog default to the folder of the duplicated image.