GNOME Bugzilla – Bug 655754
Don't set the current folder while saving/opening a file
Last modified: 2014-12-22 12:25:56 UTC
Make use of gtk_file_chooser_set_current_name() for File/Save and gtk_file_chooser_set_filename() for File/Save As (use above File/Save case for File/Save As on new document). Basically, gtk_file_chooser_set_current_folder() should not be used to set folders to show the last saved directory, a list of recently used directories will be automatically shown. This is in accordance with the GTK+ changes explained here: http://people.gnome.org/~federico/news-2011-07.html#recent-folders
To be honest I think that is a bad idea, both in general and in gedit especially. Different apps have different apps have different "recent" folders and for gedit in particular saving in the directory last used to load a file is most of the times a better guess than the generic recents: e.g. I am editing ~/git/gnome/gedit/gedit.c and decide to create gedit-foo.c file I want to be in ~/git/gnome/gedit not in ~/Documents etc
I want to purpose an additional option for those who want to have a folder by default.
(In reply to comment #1) > To be honest I think that is a bad idea, both in general and in gedit > especially.