FileChooser: Sort directories before files by default
authorJami Kettunen <jami.kettunen@protonmail.com>
Sat, 25 Dec 2021 12:33:49 +0000 (14:33 +0200)
committerJami Kettunen <jami.kettunen@protonmail.com>
Sat, 25 Dec 2021 13:16:11 +0000 (15:16 +0200)
This imho is what most people[1][2] would expect to be the default in
modern times; considering this also cannot be "easily" configured
outside of the cli utilities gsettings or dconf it should just be the
default.

[1] https://superuser.com/questions/843615/gtk-3-14-file-chooser-folders-first
[2] https://askubuntu.com/questions/789505/can-i-choose-to-not-sort-directories-before-files-on-file-open-dialogs

gtk/org.gtk.gtk4.Settings.FileChooser.gschema.xml

index 985b9dda8022b69793ab1115f1ee6bd38b89b14a..b6e69a1d3fd5aba358a42ca697b5d73c77a8d539 100644 (file)
@@ -76,7 +76,7 @@
       </description>
     </key>
     <key type="b" name="sort-directories-first">
-      <default>false</default>
+      <default>true</default>
       <summary>Show folders first</summary>
       <description>
         If set to true, then folders are shown before files in the list.