GNOME Bugzilla – Bug 661751
gedit refuses to save file when backup cannot be created.
Last modified: 2014-08-13 15:08:10 UTC
this report has been filed here: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/867923 "To reproduce: 1. Make a directory with a text file inside it. 2. Change permissions on the directory so that you do not have write access. 3. Make sure you still have write access to the text file. 4. Open the text file with gedit, change it, and attempt to save. 5. Click "save anyway." Gedit displays a warning that it cannot back up the text file, with a "save anyway" button. Clicking "save anyway" does nothing, the file is not saved."
I can confirm this problem. I'm under ubuntu 11.10, gedit 3.2.3. Thanks!
Created attachment 213527 [details] A scipt to reproduce the bug Same form me (gedit - Version 3.4.1 Ubuntu 12.04) Attached is a script to reproduce the bug, just execute, write something in gedit and try to save.
I see this too (in git master). There's one additional problem here. The info bar that gedit displays in this situation consists of one super-long line: "gedit could not back up the old copy of the file before saving the new one. You can ignore this warning and save the file anyway, but if an error occurs while saving, you could lose the old copy of the file. Save anyway?" Because all that text is on a single line, the gedit window becomes really wide when the info bar is displayed. This is unattractive. Furthermore, even after I close the info bar (by clicking Don't Save) I'm unable to resize the gedit window to be narrower.
It seems that it has been fixed with the changes in the file loading and saving code this development cycle (3.13). (In reply to comment #3) > Because all that text is on a single line, the gedit window becomes really wide > when the info bar is displayed. This is unattractive. Furthermore, even after > I close the info bar (by clicking Don't Save) I'm unable to resize the gedit > window to be narrower. It is fixed too.