Happy Desktop Ver 2 - Organize, Save, Restore Desktop Icons
Source (required if based on other people's work):
This program is used to save/restore/align the Ubuntu and Mint Desktop icons positions when Nautilus, Nemo, or Caja is managing the desktop. I made this script so that I could easily restore icon positions on the Ubuntu desktop. The script also allows you to align icons to a user definable grid.
I have tested it with the 64 bit versions of the following:
Ubuntu 14.04 with Nautilus
Ubuntu 16.04 with Nautilus
Mint 18.1 Cinnamon with Nemo
Mint 18.2 Cinnamon with Nemo
Mint 18.2 Mate with Caja
Requirements (all are included with the default Ubuntu and Mint installations):
Nautilus, Nemo or Caja is your file manager
gvfs-info (which is used by Nautilus, Nemo & Caja to store icon positions)
bash, zenity, gsettings, xprop, sed, grep, awk, xdg-mime
Note: xdotool which was required in version 1 is no longer required.
Install Instructions: Copy all the files to your bin or Nautilus scripts directory (or sub-directories). Make executable and run the script.