How can I switch between gnome-shell and unity without logging off?

How can I switch between unity and gnome-shell without logging of my account. This will help me to switch between both anytime.


Solution 1:

Press Alt+F2, and

  • to run unity, execute unity --replace
  • to run gnome-shell, execute gnome-shell --replace