gtk_file_chooser_set_current_folder() returns TRUE and causes error popup when path doesn't exist
Submitted by Daniel Atallah
Link to original bug (#382479)
Description
According to the docs for gtk_file_chooser_set_current_folder(), it will return FALSE if the folder couldn't be changed successfully. The function currently returns TRUE if the new folder doesn't exist. I'm not sure if this may be by design; it will fall back to the parent directory and eventually the root directory, but I believe that it should still return FALSE because it didn't set the requested directory. If this is the desired behavior, when would the function actually return FALSE?
In addition to this (and more importantly), a blocking error dialog which says "The folder contents could not be displayed" is displayed. The detail text is "Error getting information for '/usr/nonexistent': The system cannot find the path specified." Until this dialog is dismissed, the main loop will not be iterated.
This can easily be recreated with testfilechooser.exe from gtk+/tests by simply clicking on the 'set_current_folder("/usr/nonexistent")' button.
Version: 3.22.x