GNOME Bugzilla – Bug 652045
file open dialog refuses to open or complete non-local files
Last modified: 2011-08-17 16:23:47 UTC
It is not possible to open or complete filename URIs in file open dialog. Typing smb://server/share/dir<tab> results in a message that only local files are allowed although the file open button has the "local only" property set to false. Setting the "local only" property to false allows loading remote URIs through bookmarks but typing them in the filechooser entry does not work. In gtk 3 it is not even possible to type the URI.
Created attachment 189419 [details] [review] patch to enable entering URIs in file open dialog This is because the location entry is not properly initialized. Attaching a bandaid patch that initializes the local_only property which causes this issue in its default value. However, I suggest implementing a gtk_file_chooser copy constructor and using it in all paces where a gtk_file_chooser subwidget is constructed,
*** Bug 652042 has been marked as a duplicate of this bug. ***
Thank you for catching this! I just pushed this to master and gtk-3-0.
Created attachment 189505 [details] [review] bgo#652045 - Initialize local_only in GtkFileChooserEntry This has to be done also when we switch to the entry, otherwise completion for non-local URIs won't work.
Only the latter patch is present in 2.24.5
oh, it's not present, it's the same patch both, only the line number has changed.
Oops, sorry, I forgot to push it to gtk-2-24 as well. It's pushed now.
thanks