File chooser does not respect location-mode setting
Submitted by bhr..@..il.com
Link to original bug (#788700)
Description
$ gsettings get org.gtk.Settings.FileChooser location-mode
'path-bar' $ gsettings set org.gtk.Settings.FileChooser location-mode filename-entry $ gsettings get org.gtk.Settings.FileChooser location-mode 'filename-entry' $ gsettings monitor org.gtk.Settings.FileChooser location-mode filename-entry ... ...
Leave that running in terminal
Use an application with a file open menu entry e.g. firefox, try to open a file, file chooser dialog displays the path bar i.e. does NOT show text entry for file selection. Sure enough back to terminal...
$ gsettings monitor org.gtk.Settings.FileChooser location-mode filename-entry
location-mode: 'path-bar'
$ gsettings get org.gtk.Settings.FileChooser location-mode
'path-bar'
In a reddit thread [1] someone pointed to the source code where location-mode is not loaded when the dialog opens [2] (presumably using the default) but it does save the value when closed. [3]
[1] https://www.reddit.com/r/linuxquestions/comments/7579w0/gsettings_value_getting_overwritten_after_setting/ [2] https://git.gnome.org/browse/gtk+/tree/gtk/gtkfilechooserwidget.c?h=gtk-3-22#n3877 [3] https://git.gnome.org/browse/gtk+/tree/gtk/gtkfilechooserwidget.c?h=gtk-3-22#n3916
Version: 3.22.x