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 478193 - Recently Used doesn't display recently used folders
Recently Used doesn't display recently used folders
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.12.x
Other Linux
: Normal minor
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2007-09-18 22:09 UTC by Reinout van Schouwen
Modified: 2007-10-04 17:41 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Reinout van Schouwen 2007-09-18 22:09:44 UTC
The Recently Used feature in the file chooser doesn't show recently used folders next to recently used files. (Especially for applications that stupidly default to some tmp directory for Save as, this would be useful...)

In my opinion, the fact that it doesn't do this is a genuine bug.
Comment 1 Emmanuele Bassi (:ebassi) 2007-09-19 08:34:04 UTC
nothing prevents the GtkRecentManager to add a directory, as well as nothing prevents the GtkFileChooser to display it. actually: it already does.

applications have only to register the recently used directories where it makes sense. giggle, for instance, adds the directory of the recently used repositories.

the MIME type, recognised by the XDG shared mime database, for a directory is "x-directory/normal".
Comment 2 Christian Persch 2007-09-19 12:16:04 UTC
Why make every app do this instead of having it done automatically by the filechooser? I.e. in save mode, when the user accepts the filechooser (affirmative button), just add the selected directory to the recent model.
Comment 3 Emmanuele Bassi (:ebassi) 2007-09-19 12:32:48 UTC
(In reply to comment #2)
> Why make every app do this instead of having it done automatically by the
> filechooser? I.e. in save mode, when the user accepts the filechooser
> (affirmative button), just add the selected directory to the recent model.

this is another matter entirely: this bug is about displaying the recently used folders, and as such is closed because if the application did register a recently used folder then the said folder will show up in the file chooser while in recent files mode.

personally, I think that the applications should be responsible for this behaviour, because it's their data.

I also bet that as soon as I added this kind of support to the file chooser in SELECT_FOLDER or SAVE modes there would be another bug screaming bloody murder because I've added a directory without the application developer consent and asking for a property to disable this behaviour.

anyway, I can cook up a patch and open a new bug.
Comment 4 Reinout van Schouwen 2007-09-19 13:24:24 UTC
(In reply to comment #3)

> personally, I think that the applications should be responsible for this
> behaviour, because it's their data.

To the contrary: it's the *users'* data.

> anyway, I can cook up a patch and open a new bug.

Yes please. :)
Comment 5 Emmanuele Bassi (:ebassi) 2007-09-19 13:37:51 UTC
(In reply to comment #4)
> (In reply to comment #3)
> 
> > personally, I think that the applications should be responsible for this
> > behaviour, because it's their data.
> 
> To the contrary: it's the *users'* data.

nope. the folders are the user's data - the recently used entries are the applications' data.

> > anyway, I can cook up a patch and open a new bug.
> 
> Yes please. :)

will do. and as soon as I get a bug for reverting the behaviour I'll send the reporter to you. ;-D