! 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 !
Moved or Deleted files persist in icons.screen0.rc
Status:
RESOLVED: FIXED
Product:
Xfdesktop
Component:
General

Comments

Description Hans 2007-05-22 18:48:21 CEST
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Build Identifier: 

I was trying to see how xfce stores Desktop icon locations, and I came across this configuration file.  I noticed that many old deleted or moved files are listed in this config.

Reproducible: Always

Steps to Reproduce:
1. Copy any file to Desktop (assuming you have desktop icons enabled)
2. Delete file
3. Open ~/.config/xfce4/desktop/icons.screen0.rc in a text editor


Actual Results:  
The Desktop file still listed at the end of this rc file.

Expected Results:  
Files that no longer exist on the Desktop should not show in this config file.

Using default xfce install from Xubuntu Feisty (7.04)
Comment 1 Brian J. Tarricone (not reading bugmail) 2007-05-22 20:37:09 CEST
Why does it matter?  Functionality isn't affected.
Comment 2 Hans 2007-05-22 23:18:42 CEST
Well, I figured it has a possibility of affecting performance.  If a user downloads a few files every day to their desktop, and eventually removes them, this file would have a thousand or so extra invalid entries added every year.  Granted I don't know what sort of algorithm is used when checking for icon placement, but with hundreds and possibly thousands of invalid entries in there, it just seems inneficient.

I personally have 273 extra invalid entries in this file, and this is not even my primary computer.
Comment 3 Brian J. Tarricone (not reading bugmail) 2007-05-22 23:31:55 CEST
Mmm, true, I suppose it couldn't hurt to rewrite the file from scratch each time it's saved.

I guess there's also a potential (though weak) privacy issue as well: deleted file names sticking around after deletion.
Comment 4 Brian J. Tarricone (not reading bugmail) 2007-11-07 05:49:53 CET
Fixed in svn rev 26267.

Bug #3267

Reported by:
Hans
Reported on: 2007-05-22
Last modified on: 2009-07-14

People

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

Version

Attachments

Additional information