Ubuntu – How to invoke a user switch from the command line

12.04command linesessionswitch-userunity-greeter

In 11.10 I used 'gdmflexiserver -xnest' to switch users without logging out however I think gdm has now been completely removed.

I'm trying to bind a keyboard shortcut to do the equivalent of 'Me Menu>Switch User Account…'.

How can I invoke a user switch in 12.04?

Best Answer

gdmflexiserver as a legacy option to provide the greeter switcher service during the transition between GDM and LightDM.

This has now been dropped from 12.04.

The replacement command is:

dm-tool switch-to-greeter

Other useful dm-tool options (dm-tool --help):

enter image description here