Created attachment 4586 desktop configuration I have only one 1920x1200 dislplay connected and only one .config/xfce4/desktop/icons.screen0-1904x1118.rc file. I have all default icons (home, filesystem, trash, removable devices' enabled in my desktop. Automount is disabled. Sometimes after reboot the default icons get messed up. Sometimes trash icon is not displayed at all. I'm not sure, probably auto-generation of the device icons messes it up. I have a couple of 32GB partitions on my hard drive, which icons are named exactly the same on the Desktop - "[32 GB Volume]". However, there's only one such entry in the icons.screen0-1904x1118.rc. Sometimes one of the [32 GB Vilume] icons appears in the top left corner instead of [Home] while [Home] is placed lower where the [2.2 GB Volume] should be. The other block device icons are messed up as well. This is kind of annoying, since my block device configuration doesn't change. and there are no removable devices attached. Even if the block device icons are re-generated each time, it should not affect the position of other icons. I expect all icons to take their places as configured in the previous session, while new device icons should be placed at free desktop areas. Thanks, Val.
I don't think it has something to do with "autogenerated icons" because I do not have such (everything related to removable media is disabled) but the behaviour seems the same - sometimes after reboot most of the Icons are messed up and appear in several packed rows from top left of the desktop (without empty positions). Only one of the default icons of the desktop is enabled here, its trash. The last manual change of icons positions (adding one, moving another, ...) is way back, so the question is, when/why gets this file touched and which process would do it? System is OpenSuSE 12.2 64bit, XFCE 4.10 Display is 1280x1024, icon positions file is named icons.screen0-1264x971.rc
Created attachment 4937 More consistent icon placement The proposed patch should fix some issues with icon placement. Specifically when the screen size changes, icons are loaded from the icon cache if the position is available, then an attempt is made to re-locate the icon at its original position before the change event, if that is still available, and finally any leftover icons are appended to any free position. This should help keep the icons where the user would like them to be.
I haven't tested the proposed patch, so I can't tell wether it actually solves the problem, but are there any chances it will be ever included in the master?
Created attachment 5151 Rework how icons are saved This patch saves the icons based on the file's path rather than the icon name, except for volume icons where it attempts to use the volume's UUID. It applies against master but won't apply cleanly against 4.10.2 because of other changes. Let me know if this works and if there's any regressions.
Pushed to master for more testing: http://git.xfce.org/xfce/xfdesktop/commit/?id=c014cb3231259ea4ffc4477f7ce7c7531f1c5d12
Marking resolved.