It's not only one bug. :)
The icons reposition in other cases.
The rc config file is created only after the icons are moved.
If you resize the panel just a few pixels close the panel settings
and logout the icons will move because their position isn't saved.
Another one is the Trash icon that move
This works for me:
The first script is set to autostart on login.
The second one is used for logout / reboot.
https://forum.xfce.org/viewtopic.php?pid=49764#p49764
The first script waits untill all the the panels are in the window
stack, then sets the folder permissions of .config/xfce/desktop to
Installed xubuntu 18.04 updated and the icons moved here and then.
The rc files in $HOME/.config/xfce4/desktop/ directory are created only when
the icons move.
I thought that having all those rc files must have borked something, so I made
a script that launches on startup that keeps only the lat