Desktop icons keep rearranging whenever I refresh the desktop or boot the system

Desktop icons keep rearranging whenever I refresh the desktop or boot the system.
When I arrange the icons by moving them with the mouse and refresh it, it'd be undone and rearranged by name. What's the solution?
I use Ubuntu 16.04.
I think this is a bug. How should I report it?


Solution 1:

Open a terminal and enter the following commands:

cd ~/.local/share/gvfs-metadata  
sudo chown $USER home  
chmod 755 home

This allows your desktop software to change/save the icon configuration.
(Thanks to the community for correcting spelling and syntax errors.)