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 655754 - Don't set the current folder while saving/opening a file
Don't set the current folder while saving/opening a file
Status: RESOLVED WONTFIX
Product: gedit
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Gedit maintainers
Gedit maintainers
Depends on:
Blocks:
 
 
Reported: 2011-08-01 21:21 UTC by Akshay Gupta
Modified: 2014-12-22 12:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Akshay Gupta 2011-08-01 21:21:06 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
Comment 1 Paolo Borelli 2011-08-01 21:37:42 UTC
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
Comment 2 Pierre Evers 2012-02-13 09:26:43 UTC
I want to purpose an additional option for those who want to have a folder by default.
Comment 3 Sébastien Wilmet 2014-12-22 12:25:56 UTC
(In reply to comment #1)
> To be honest I think that is a bad idea, both in general and in gedit
> especially.