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 768180 - GtkFileChooser doesn't sort folders above files
GtkFileChooser doesn't sort folders above files
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
3.20.x
Other Linux
: Normal major
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2016-06-29 12:49 UTC by thomas meier
Modified: 2016-07-27 15:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description thomas meier 2016-06-29 12:49:45 UTC
In the new Fedora 24 the GtkFileChooser doesn't sort the folders above the files any more by default. If you really think users like to sort the like this, make GtkFileChooser remembering the setting.

But now I need all the time one click more! Pleas bring back the old behaviour.

And no, I really don't care at the "Gnome work flow" at all. I would use Gnome, if your work flow of Gnome would work for me. Sadly some applications like Firefox or GIMP use GtkFileChooser. This file dialogue is really a big pain since many years. This only one problem. But really the most frustrating right now. It used to work.
Comment 1 Emmanuele Bassi (:ebassi) 2016-06-29 12:56:39 UTC
The GtkFileChooser widget checks the value of the sort-directories-first setting, and has been doing so since 2013.

What does:

  gsettings get org.gtk.Settings.FileChooser sort-directories-first

print out on your system?
Comment 2 thomas meier 2016-06-29 13:02:32 UTC
thom@Host-001 ~ $ gsettings get org.gtk.Settings.FileChooser sort-directories-first
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.
false
thom@Host-001 ~ $
Comment 3 Emmanuele Bassi (:ebassi) 2016-06-29 13:05:44 UTC
(In reply to thomas meier from comment #2)
> thom@Host-001 ~ $ gsettings get org.gtk.Settings.FileChooser
> sort-directories-first
> GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings will
> not be saved or shared with other applications.
> false

This is why the file chooser is not saving its state.

You should install dconf, which is the session component responsible for permanent storage of settings on Linux.
Comment 4 thomas meier 2016-06-29 13:31:52 UTC
OK, looks like the Fedora team forgot a despondency. 
I'll open a bug at Fedora Bugzilla.
Comment 5 Matthias Clasen 2016-06-29 17:32:15 UTC
(In reply to thomas meier from comment #4)
> OK, looks like the Fedora team forgot a despondency. 
> I'll open a bug at Fedora Bugzilla.

We won't add a dependency for that. GSettings can use various backends. dconf is just one of them.