How to properly restart unity?
You can press Alt+F2, then type unity
, then press Enter to restart Unity.
Or you could use:
sudo service gdm restart
On 14.04 and 14.10 use:
sudo service lightdm restart
On 15.04 and 15.10 use:
sudo systemctl restart lightdm.service