Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-05-19 17:23:34

xendistar
Member
Registered: 2011-11-07
Posts: 28

File & Folder order in open dialogue windows

If I look at file and folders in Thunar I find folder are listed first in alphabetical order and then the files in alphabetical orders.  Now if want to post an image online say,  when I click the button to take me to my "Picture" folder the ordering of the files and folder is all over the place, there does not seem to be any logical order.

I have install Dconf Editor (45.0.1) and set the File Chooser (/org/gtk/settings/file-chooser/) to Folders first but this does not make any differences

I am running Debian Testing with XFCE 4.18

Any thoughts.

Offline

#2 2024-05-19 21:06:47

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: File & Folder order in open dialogue windows

xendistar wrote:

Now if want to post an image online say,  when I click the button to take me to my "Picture" folder the ordering of the files and folder is all over the place, there does not seem to be any logical order.

From which browser or application are you running this from?

I have install Dconf Editor (45.0.1) and set the File Chooser (/org/gtk/settings/file-chooser/) to Folders first but this does not make any differences

Which folder are you looking at? I notice that the sorting doesn't work for the "Recent" folder but does for all of the others. Can you confirm the setting?

gsettings get org.gtk.Settings.FileChooser sort-directories-first

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-05-19 21:31:01

xendistar
Member
Registered: 2011-11-07
Posts: 28

Re: File & Folder order in open dialogue windows

ToZ wrote:
xendistar wrote:

Now if want to post an image online say,  when I click the button to take me to my "Picture" folder the ordering of the files and folder is all over the place, there does not seem to be any logical order.

From which browser or application are you running this from?

Which folder are you looking at? I notice that the sorting doesn't work for the "Recent" folder but does for all of the others. Can you confirm the setting?

I am using Brave Browser (google Chrome based), My Picture folder /Home/mit/Pictures, yet when I open Pictures via going through Thunar it display correctly.

I was using Brave on Linux Mint XFCE and it displayed perfectly.

gsettings get org.gtk.Settings.FileChooser sort-directories-first
mit@NX1:~$ gsettings get org.gtk.Settings.FileChooser sort-directories-first
true

Offline

#4 2024-05-19 22:31:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: File & Folder order in open dialogue windows

Are you using an xdg-desktop-portal front-end? Look to see if one is installed and look at its configuration files (see the Arch wiki for more info - this info should also apply to debian as well).

I wonder if you are using another filechooser and that's why the setting isn't having an effect. Feel free to post a pic of the filechooser if you'd like a visual identification.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2024-05-22 05:31:58

xendistar
Member
Registered: 2011-11-07
Posts: 28

Re: File & Folder order in open dialogue windows

Unfortunately I am unable to find any xdg files as per those shown in the article.

Offline

#6 2024-05-22 09:56:06

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: File & Folder order in open dialogue windows

What is the output of:

ps -ef | grep portal

Also, can you post a screenshot of this dialog?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2024-05-22 16:41:41

xendistar
Member
Registered: 2011-11-07
Posts: 28

Re: File & Folder order in open dialogue windows

Thanks for the reply

{code]mit@NX1:~$ ps -ef | grep portal
mit         2055    1372  0 06:23 ?        00:00:00 /usr/libexec/xdg-desktop-portal
mit         2063    1372  0 06:23 ?        00:00:00 /usr/libexec/xdg-document-portal
root        2080    2063  0 06:23 ?        00:00:00 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/doc
mit         2088    1372  0 06:23 ?        00:00:00 /usr/libexec/xdg-desktop-portal-gtk
mit        12818   12814  0 17:18 pts/0    00:00:00 grep portal
{/code]

Below is the xdg-desktop-portal-??? view, I have both /usr/libexec/xdg-desktop-portal-xapp  &  /usr/libexec/xdg-desktop-portal-gtk, here is the output

/usr/libexec/xdg-desktop-portal-xapp                                     242/242               100%
/usr/libexec/xdg-desktop-portal-xapp: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dyna
mically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=3e74d04b562a30a391eadf91ef3f
64d06eb4f038, for GNU/Linux 3.2.0, stripped

/usr/libexec/xdg-desktop-portal-gtk                                      241/241               100%
/usr/libexec/xdg-desktop-portal-gtk: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynam
ically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=e0c645d097c0ff8741085cd7181dd
a7f92a652ee, for GNU/Linux 3.2.0, stripped 

But those files do seem to editable

Offline

#8 2024-05-22 17:53:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: File & Folder order in open dialogue windows

Can you post a screenshot of the dialog?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#9 2024-05-22 20:36:10

xendistar
Member
Registered: 2011-11-07
Posts: 28

Re: File & Folder order in open dialogue windows

Output from ps

mit@NX1:~$ ps -ef | grep portal
mit         2055    1372  0 06:23 ?        00:00:00 /usr/libexec/xdg-desktop-portal
mit         2063    1372  0 06:23 ?        00:00:00 /usr/libexec/xdg-document-portal
root        2080    2063  0 06:23 ?        00:00:00 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subtype=portal -- /run/user/1000/doc
mit         2088    1372  0 06:23 ?        00:00:00 /usr/libexec/xdg-desktop-portal-gtk
mit        27096   27075  0 21:29 pts/0    00:00:00 grep portal
mit@NX1:~$ 

Offline

#10 2024-05-22 21:25:49

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: File & Folder order in open dialogue windows

Everything looks good there. As a test, can you create a secondary test account on your computer and see if you can replicate the issue with this test account?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2024-05-23 10:57:10

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 528

Re: File & Folder order in open dialogue windows

The file save dialog defaults to alphabetical order. I'm sure it's true of file select as well. It just starts at the top and mixes files and folder all the way down. If the next time you have it open just right click and on the bottom of the menu select  Sort Folders Before Files.
5RYNkw3.png


Siduction
Debian Sid
Xfce 4.18

Offline

#12 2024-05-23 17:37:40

xendistar
Member
Registered: 2011-11-07
Posts: 28

Re: File & Folder order in open dialogue windows

ToZ wrote:

Everything looks good there. As a test, can you create a secondary test account on your computer and see if you can replicate the issue with this test account?

Set up test account, then logged in opened a web page, went to copy a image onto the web page and the window that opened for my image folder had numbered folder first, then folders spelt with a capital letter first, then files spelt with a capital letter first, then folder spelt with a lowercase letter first, then files spelt with a lowercase letter at the start.

So basically the same issue I have on my main account, so it looks like a system issue rather than an account issue.

Offline

#13 2024-05-23 20:59:16

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: File & Folder order in open dialogue windows

Have you tried @eriefisher's suggestion?

It would be nice if we could see an image of your filechooser dialog.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#14 2024-05-23 21:23:55

xendistar
Member
Registered: 2011-11-07
Posts: 28

Re: File & Folder order in open dialogue windows

Here a few of the file order showing the File names spelt with a capital coming before files spelt with a lower case first letter.

folder-sort.png

But if I go into Thunar for instance then the file and folder are listed in the correct order regardless of the capital - non capital first letter

Offline

#15 2024-05-23 22:03:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: File & Folder order in open dialogue windows

xendistar wrote:

But if I go into Thunar for instance then the file and folder are listed in the correct order regardless of the capital - non capital first letter

Thunar is different than that dialog box - the dialog box is provided by Gtk and is called GtkFileChooserDialog. Thunar is not yet providing that dialog (its being worked on).

However, this example is different from your original post. In the original post, you said that the files and folders were in no logical order. Can you confirm the exact nature of the issue?

Regarding the image you posted....
What locale settings are you using?

locale

If you run the brave browser as:

LC_COLLATE=C brave

...does the sort order change?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#16 2024-05-24 19:48:02

xendistar
Member
Registered: 2011-11-07
Posts: 28

Re: File & Folder order in open dialogue windows

OK from the top

AT first the listing of the files and folder was worse, in the sense of being mixed up, but it has improved to a more organised with Captial first letters on folder then lower case first letter on folders, then repeating the same pattern with files. While I say it has improved it is not what I would expect, the previous distro I ran I had the dialogue boxes with files and folder in alphabetical order as you would expect (or at least I do).

In regards to you question on locale

mit@NX1:~$ locale
LANG=C.UTF-8
LANGUAGE=
LC_CTYPE="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_TIME="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_PAPER="C.UTF-8"
LC_NAME="C.UTF-8"
LC_ADDRESS="C.UTF-8"
LC_TELEPHONE="C.UTF-8"
LC_MEASUREMENT="C.UTF-8"
LC_IDENTIFICATION="C.UTF-8"
LC_ALL=

But I am now going to bring a halt to proceeding. This was one of several bugs I have had since I installed Debian on this laptop. For much of my linux life I have been a Debian or Debian based fan. So I am quite disappointed that I have had these issue with Debian. So I have taken the decision to wipe the hard disk and start again. I am not sure what Distro I will use at the stage (it will be Dabian based).

I would like to thank you for the time and effort you have put into helping me with this issue, just sorry that we never reached a resolved conclusion.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 609.73 KiB (Peak: 626.58 KiB) ]