! 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 !
xfdesktop does not remember the icon position of certain icons
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description Moritz Heiber editbugs 2007-03-05 02:21:28 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20061220 Firefox/2.0.0.1 (Swiftfox)
Build Identifier: 

xfdesktop constantly fails to remember the positions for the two icons "File System" and "Trash" although those icons where generated alongside "Home" during the first startup. Wherever I drag them on the screen .. on the next start they appear at the top left corner again.

Reproducible: Always

Steps to Reproduce:
1. Start xfdesktop
2. Move "Trash" and/or "File System" icon
3. Restart xfdesktop

Actual Results:  
The icons appear at the upper left corner.

Expected Results:  
The icons should actually stay at the position I dragged them to in the first place.

On request, I attached the the rc file which handles the icon placement (supposedly).
Comment 1 Moritz Heiber editbugs 2007-03-05 02:22:14 CET
Created attachment 1018 
Xfdesktop icon RC file
Comment 2 Manuel C. 2007-10-05 20:24:55 CEST
I can confirm issues with the icons "position remembering".
Comment 3 Daniele C. 2008-06-21 06:41:57 CEST
I am also bugged by this bug. My icons' positions are not always remembered across sessions.

I think xfdesktop should instantly save the icons positions to file, so that on next session they will be remembered (even in case of crash).
Comment 4 gregg128 2011-03-03 11:54:30 CET
I can confirm this annoying bug. Please oh please fix it! Thanks.
Comment 5 Eric Koegel editbugs 2011-11-12 14:23:09 CET
Created attachment 3951 
Patch to escape out the ] delimiter from files when reading/writing to the icon RC file.

This patch changes the ] to a non-printable character (audible bell) when reading/writing to the icon RC file. This will allow filenames to have ] anywhere in the filename and correctly remember their position.
Comment 6 Mike Massonnet editbugs 2011-11-13 16:50:44 CET
*** Bug 5935 has been marked as a duplicate of this bug. ***
Comment 7 Mike Massonnet editbugs 2011-11-13 16:50:54 CET
*** Bug 8068 has been marked as a duplicate of this bug. ***
Comment 8 Eric Koegel editbugs 2011-11-14 20:59:31 CET
Comment on attachment 3951 
Patch to escape out the ] delimiter from files when reading/writing to the icon RC file.

There's a better way to fix this.
Comment 9 Eric Koegel editbugs 2011-11-15 18:01:45 CET
https://bugzilla.xfce.org/show_bug.cgi?id=8150 is the patch I submitted for this fix. I submitted it to libxfce4util because there's where the root cause of this bug lies.
Comment 10 Eric Koegel editbugs 2013-11-27 02:20:01 CET
The libxfce4util bug was fixed. Xfdesktop now also has a couple patches to make it better at placing the icons where they belong as well as better handling for device icons:
http://git.xfce.org/xfce/xfdesktop/commit/?id=b73e824438ed12d85e63d601dcc117165b648daf

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

Bug #2975

Reported by:
Moritz Heiber
Reported on: 2007-03-05
Last modified on: 2013-11-27
Duplicates (2):
  • 5935 icon of file with `]` in name does not remember position on desktop
  • 8068 xfdesktop does not remember the icon position of files with [] signs in filename

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
6 users

Version

Attachments

Additional information