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 788700 - File chooser does not respect location-mode setting
File chooser does not respect location-mode setting
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-10-09 09:47 UTC by bhrgunatha
Modified: 2018-05-02 19:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description bhrgunatha 2017-10-09 09:47:53 UTC
$ 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
Comment 1 Matthias Clasen 2017-10-26 04:46:57 UTC
It is a private gtk setting, you don't really have any business tweaking it. It may disappear at any point.
Comment 2 dytynenko.roman 2018-03-16 17:15:09 UTC
I've also stumbled upon this bug. I thought that "filename-entry" will make possible to edit/copy/paste path in save-as dialog, but it wasn't possible.

How do we edit/copy path in save dialog? Ctrl-L doesn't work.
Comment 3 GNOME Infrastructure Team 2018-05-02 19:14:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/938.