The phenomenon occurs when I delete any icon on the desktop. Happens then that the file ~/.config/Xfce4/desktop/icons.screen0-<desktop-resolution>.rc containing the arrangement of icons on the desktop is no longer updated (you can still read the file name of the icon you just removed). So, when you close the session (logout or reboot), a wrong scenario is saved in ~/.config/xfce4/desktop/icons.screen0-<desktop-resolution>.rc. This in turn means that, when you start a new session, the file ~/.config/xfce4/desktop/icons.screen0-<desktop-resolution>.rc can not be correctly interpreted and is entirely recreated. This causes a complete reorganization of the icons on the desktop. A confirmation of this is that, restoring the deleted icon before closing the session, the next session mantains the icons in the right position. Conversely, the problem does not seem to occur when you add new icons to the desktop. I'm using Arch Linux (kernel 3.18.6-1-ARCH)) on a HP-G62 laptop. Thanks, vda P.S. I'm sorry for my english: I'm still learning.
Do the icon positions reset when you restart xfdesktop manually (with enabled debug output)? $ xfdesktop --quit; xfdesktop --enable-debug Other than that, please build xfdesktop from git master to verify that the bug is still present.
No the icon positions reset when I logout, or reboot my system. Here, shortly what I can see: 1. Adding the icon 'test.txt' DBG[xfdesktop-file-icon-manager.c:2194] xfdesktop_file_icon_manager_add_icon(): icon 'test.txt' didn't have a previous position DBG[xfdesktop-file-icon-manager.c:2636] xfdesktop_file_icon_manager_file_changed(): got changed event DBG[xfdesktop-icon-view.c:3768] xfdesktop_icon_view_icon_find_position(): old position didn't exist or isn't free, got (6,0) instead DBG[xfdesktop-file-icon-manager.c:1885] xfdesktop_file_icon_manager_save_icons(): saving to: /home/vda/.config/xfce4/desktop/icons.screen0-1350x690.rc 2. Moving the icon 'test.txt' DBG[xfdesktop-icon-view.c:1563] xfdesktop_icon_view_drag_drop(): target=121 (XFDESKTOP_ICON) DBG[xfdesktop-icon-view.c:1636] xfdesktop_icon_view_drag_drop(): drag succeeded DBG[xfdesktop-file-icon-manager.c:1885] xfdesktop_file_icon_manager_save_icons(): saving to: /home/vda/.config/xfce4/desktop/icons.screen0-1350x690.rc 3. Deleting the icon 'test.txt' DBG[xfdesktop-file-icon-manager.c:1885] xfdesktop_file_icon_manager_save_icons(): saving to: /home/vda/.config/xfce4/desktop/icons.screen0-1350x690.rc DBG[xfdesktop-file-icon-manager.c:2680] xfdesktop_file_icon_manager_file_changed(): got deleted event Thanks, vda
Thanks. This bug is now fixed in master: http://git.xfce.org/xfce/xfdesktop/commit/?id=703e53b14fe51172154ab5d8cf3dbf8198bc40e6 Please test and report back.
Thank you very much. I've just tested your code and it solves the problem. I want you to know I've really appreciated your work, vda
Solved