After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662877 - "Create a backup copy of files before saving" should be off by Default
"Create a backup copy of files before saving" should be off by Default
Status: RESOLVED FIXED
Product: gedit
Classification: Applications
Component: general
3.2.x
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-27 18:37 UTC by Bhaavan Merchant
Modified: 2014-08-13 15:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Set default value of create-backup-copy setting to false (1.31 KB, patch)
2014-08-13 15:00 UTC, Sébastien Wilmet
accepted-commit_now Details | Review

Description Bhaavan Merchant 2011-10-27 18:37:43 UTC
By default Gedit is creating a ~ file while saving a file. This option should by default be off rather than on, since this creates a clutter of unnecessary backup files. This is not expected of a text-editor software.
Comment 1 smt.infp 2012-09-14 13:18:23 UTC
I agree with the pertinence of this bug report.

Other related problems are of a confidentiality- and security-breaches nature.

Just for the popularity of such a discussion to be assessed: http://brainstorm.ubuntu.com/idea/17749/
Comment 3 Sébastien Wilmet 2013-12-16 13:39:58 UTC
A backup is really useful, if you save the file by mistake, and then close the file. Ideally, everyone should regularly make backups, but in practice it isn't the case.

However, if the file is taken into account by a version control system (git, SVN, etc), the backup is indeed completely useless.
Comment 4 Johan Kröckel 2013-12-26 18:45:05 UTC
Backups are fine, but without telling the user, that they are there, as hidden files?
Comment 5 Sébastien Wilmet 2014-08-12 21:30:41 UTC
There is a setting in the preferences dialog. Someone knowing gedit can easily disable the feature. Someone without a good knowledge of what he or she is doing generally prefer a backup, just in case. So I think this bug can be closed.
Comment 6 Paolo Borelli 2014-08-12 22:42:40 UTC
I actually would prefer to change the default. creating foo~ files is not very useful in 2014
Comment 7 Sébastien Wilmet 2014-08-13 15:00:00 UTC
Created attachment 283290 [details] [review]
Set default value of create-backup-copy setting to false

And update the description, it is no longer possible to change the
backup file extension.
Comment 8 Ignacio Casal Quinteiro (nacho) 2014-08-13 15:07:10 UTC
Review of attachment 283290 [details] [review]:

Looks good to me.
Comment 9 Sébastien Wilmet 2014-08-13 15:21:37 UTC
Pushed:
https://git.gnome.org/browse/gedit/commit/?id=eeb81e5b1bab893ea48cd3314e5ae7594a99ba5c

Sorry for having first closed this bug as wontfix, I thought backups were created by default for good reasons.