Sunday, September 25, 2011

Setting Gnome Shell as the default desktop session for Oneiric

LightDM apparently doesn't yet provide a UI for setting the default desktop session. At least it's not available in Oneiric.

Changing the default session requires running lightdm-set-defaults from terminal. After installing Gnome Shell from the repositories, it's a simple command away from setting it as your default desktop:

~$ sudo /usr/lib/lightdm/lightdm-set-defaults --session gnome

Once successfully run, Gnome Shell should be the default selection on your next boot. To change back to Unity simply re-run the command, replacing gnome with ubuntu.

~$ sudo /usr/lib/lightdm/lightdm-set-defaults --session ubuntu

That's it.