I'm re-opening this bug.
I use Debian sid with the latest menu-cache, libfm, pcmanfm and now also installed lxde-common from git.
pcmanfm used to show files/folders in a random order on the desktop when we login in LXDE; this is still happening.
Some time ago pcmanfm also displayed the files in that random order in its main window the first time it's opened. That had stopped and now I noticed this is happening again. It keeps displaying in this apparently random order in all directories until we manually set some other order than the default "ascending/by name".
I was using lxde-common from Debian and I only needed to delete /usr/share/lxde/pcmanfm/LXDE.conf for pcmanfm to display the files properly the first time it was opened (on the desktop they still displayed in a random order). Now I see that I have /etc/xdg/pcmanfm/default/pcmanfm.conf, /etc/xdg/pcmanfm/LXDE/pcmanfm.conf and /etc/xdg/pcmanfm/pcmanfm/pcmanfm.conf
While this may be another bug, I also noticed that /etc/xdg/pcmanfm/default/pcmanfm.conf and /etc/xdg/pcmanfm/pcmanfm/pcmanfm.conf have
while /etc/xdg/pcmanfm/LXDE/pcmanfm.conf has
I don't know which were created by lxde-common and which by pcmanfm but both applications aren't matching in this subject.
To test more properly, I renamed /.config/pcmanfm before logging in with LXDE the first time after installing lxde-common from git. The session (startlxde, I suppose) created /.config/pcmanfm/default/ with root ownership. This seems to be a bug.
Compare the old folder with the newly created:
lxde@debian:/home/lxde/.config/pcmanfm-old$ ls -l
drwx------ 2 lxde lxde 4096 Abr 18 14:47 default
drwx------ 2 lxde lxde 4096 Abr 14 15:31 LXDE
lxde@debian:/home/lxde/.config/pcmanfm$ ls -l
drwx------ 2 root root 4096 Abr 18 19:09 default
drwxr-xr-x 2 lxde lxde 4096 Abr 18 19:10 LXDE
(this may be yet another bug but I'll leave it here for the while as it may be simpler)
I shall report any further news on the subject.