Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I am currently logged in to Unity, is there a way for me to switch my current session to Unity 2D or Gnome without logging out and in again? I know I can restart Unity by running unity --replace. Is there an equivalent command for Unity 2D or Gnome that I could run to switch to it? If I am currently running Unity 2D or Gnome, will unity --replace switch me back to Unity?

share|improve this question
up vote 2 down vote accepted

Honestly, I would just log out and log back in. Even if you got a script to switch you mid-session, there could potentially be some Unity code still in RAM that might conflict with whatever session you are in. Also, whenever I switch from logging out / in, the Adwaita theme becomes default for Unity.

It would honestly be screwy. May I ask why you would want to switch environments mid-session?

share|improve this answer
Mostly I was just wondering if it was possible. – Ryan Thompson Feb 27 '12 at 1:15
For Live runs, it would be useful to switch without having to log out, since logging out isn't trivial. – Dan Dascalescu Dec 30 '12 at 3:32

I think the better option is to logout and login with the chosen option .. after some logins with the one of the options it will be the default

share|improve this answer

I haven't tried it, but you could try metacity --replace to go to Gnome.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.