New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 755962 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Sorting of files and folders in "Open Files" dialog does not show folders on top of files

Reported by restless...@gmail.com, Aug 16 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.78 Safari/537.36

Steps to reproduce the problem:
1. Trigger the "Open Files" Dialog by clicking on an upload button of a website

What is the expected behavior?
The files and folders in the "Open Files" dialog should first show all folders in alphabetical order on top followed by all files in alphabetical order, e.g.:
a_folder
b_folder
c_folder
a_file
b_file
c_file
d_file

What went wrong?
Files and folders are not sorted separately but mixed up:
a_file
a_folder
b_file
b_folder
c_file
c_folder
d_file

Did this work before? Yes Version 56

Chrome version: 60.0.3112.78  Channel: n/a
OS Version: Debian Jessie
Flash Version: 

Other file dialogs e.g. of other browsers and applications show the expected sorting, only chrome shows different sorting since the latest version, which makes it hard to navigate into folders, if there are a lot of files in one folder.
 
Cc: thomasanderson@chromium.org e...@chromium.org est...@chromium.org
Components: -UI UI>Browser>Themes
CC'ing some src/chrome/browser/ui/libgtkui/select_file_dialog_impl_*.cc developers
I found a solution for the issue:

The sorting method depends on the GTK org/gtk/settings/file-chooser/sort-directories-first setting:

To change the sorting order:
Execute dconf-editor
Navigate to org/gtk/settings/file-chooser
Select the box next to sort-directories-first
Close the dialog

So the changed behavior of the "Open Files" dialog probably was due to applying the setting in the latest version, whereas previous versions always showed the folders first without checking this setting. In my opinion the current implementation is correct and the issue can be closed.

Hope this someone experiencing the same issue.

Status: WontFix (was: Unconfirmed)
c#2 Thanks for the feedback.  It sounds like this is GTK policy

Sign in to add a comment