4

The title of the feature, "Switch User Account", suggests that the current user's information is safe and can be restored. However, when I log back in to my account after a "Switch User Account", my session starts fresh.

How can I keep my original session running when the user is switched?

This has been asked for Ubuntu 13.04 but no answer was provided there. I am on Ubuntu 12.04.

UPDATE: Please note that I am not looking for a better way to "Switch User". I just want that when I accidentally do "Switch User" from the menu, I am not logged out.

wsaleem
  • 333
  • 2
  • 8

2 Answers2

0

You can use this command in terminal to switch user without logging-off :

dm-tool switch-to-greeter 

Try it and reply .

nux
  • 37,371
  • 34
  • 117
  • 131
0

Try this command:

  switch-to-user USERNAME [SESSION]   

This will switch to a user session(Replace USERNAME with yours)

dm-tool --help shows these options:

  switch-to-greeter                   Switch to the greeter
  switch-to-user USERNAME [SESSION]   Switch to a user session
  switch-to-guest [SESSION]           Switch to a guest session
  lock                                Lock the current seat
  list-seats                          List the active seats
  add-nested-seat                     Start a nested display
  add-local-x-seat DISPLAY_NUMBER     Add a local X seat
  add-seat TYPE [NAME=VALUE...]       Add a dynamic seat
Maythux
  • 82,867
  • 54
  • 239
  • 271
  • Thanks. I added an update to my original post to better explain my problem. As I commented on nux's answer above, I am not looking for a better way to "Swtich User". I just want the menu's "Swtich User" to not log me out. – wsaleem Mar 04 '14 at 11:53