This is such a mess that I will have to rewrite my post and try again later…
Hi, I don’t see the edits in between, but FWIW nautilus tries to use (and set) the GTK settings. I am not aware of any changes in this regard, even with nautilus becoming a file chooser.
I can’t see it any more. When I wrote the post I assumed some things that experimentation suggests that aren’t true, I’ll gather my thoughts then post again.
After much experimentation, Nautilus, Writer and myapp all follow
gsettings set org.gtk.gtk4.Settings.FileChooser sort-directories-first true
but none of them set it.
IMHO Nautilus should set it with this option
Preferences>General>Sort folders before files set On
It’s the obvious place, I would think most people would want it to work the same in most apps and apps could choose whether to follow it or not anyway. Since it doesn’t, there should be an option in Gnome Settings or at least in Gnome Tweaks.
If I (reluctantly) use gsettings on the command line, it works for me, but needs doing every time I start the computer and it’s not much good for the ordinary user.
No doubt someone will let me know if I have misunderstood anything.
click on the pencil icon (with #2 along side it) to see the edit history on the first post.
Some of my checks and conclusions above were wrong.
However, the problem remains that changing the sort-directories-first flag using Nautilus doesn’t affect Libre Office Writer. It’s because Writer on Fedora 41 isn’t using GTK4 and Nautilus only sets the GTK4 flag and not the one for earlier GTK versions.
gsettings get org.gtk.gtk4.Settings.FileChooser sort-directories-first
gsettings get org.gtk.Settings.FileChooser sort-directories-first
IMHO, since apps written in earlier versions of GTK will probably be looking at the earlier flag, Nautilus should set that one too.
More details.
I was under the impression that they were the same key, did not know there is a dedicated gtk4 one. For compatibility it might make sense for nautilus to also set the GTK3 legacy key. I am not sure if it wasn’t kept around on purpose, or the change was done before nautilus became a file chooser.
Feel free to open an issue at Sign in · GitLab
I think I reported it somewhere, although I can’t see it on the site that you link to.
I linked to the official issue tracker
I should have been more precise, I meant that I think I have reported it somewhere official. I’ve just had a look at your linked site and I remember filling in all the details, so it must be on there already even if I can’t find it.