! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Rearrangement of the desktop after deleting some icons
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description vda 2015-03-12 11:19:45 CET
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.
Comment 1 Thaddaeus Tintenfisch editbugs 2015-03-13 10:26:03 CET
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.
Comment 2 vda 2015-03-13 16:48:19 CET
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
Comment 3 Thaddaeus Tintenfisch editbugs 2015-03-15 16:17:32 CET
Thanks. This bug is now fixed in master:

http://git.xfce.org/xfce/xfdesktop/commit/?id=703e53b14fe51172154ab5d8cf3dbf8198bc40e6

Please test and report back.
Comment 4 vda 2015-03-15 23:35:15 CET
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
Comment 5 vda 2015-03-15 23:38:05 CET
Solved

Bug #11692

Reported by:
vda
Reported on: 2015-03-12
Last modified on: 2015-03-15

People

Assignee:
Eric Koegel
CC List:
1 user

Version

Version:
4.12.0

Attachments

Additional information