I have several user accounts on a machine my mother uses most of the time. How can I sort the users so that her account shows up first in the list?
I had the same problem, so I did an inquiry:
gdm simple greeter uses ConsoleKit for obtaining the list of users. you can check the list (in the gdm order) by running:
$ ck-history --frequent --seat='Seat1' user1 148 user2 145 gdm 143
if 'Seat1' is not working, enter seat values from 'ck-list-sessions'.
I do not know of a way to hand edit the ck-history list, but you can easily increase the frequency number for a logged in user e.g. by running (when user2 is logged in):
$ for n in `seq 1 10`; do echo exit|ck-launch-session; done
the numbers will change to
$ ck-history --frequent --seat='Seat1' user2 155 user1 148 gdm 143
and the login screen user list will be reordered in the same way.
In response to both Gilles and Arancaytar's solutions: they might both be right. I had the same problem as Arancaytar. The account I logged into most frequently was strangely at the bottom of the list. But after reading Gilles solution, I tried logging in not by clicking on my name in the user list, but by clicking on "Others", manually typing my username, and then my password. After that I logged out to check, and my name was on the top of the user list. It seems like the login screen, for some strange reason, only records the frequency of logins when you manually enter your username. I haven't confirmed this definitely though.
In short, for those still having problems, do this:
- Log out.
- Don't log in by clicking your name in the list.
- Click on "Others" instead.
- Log in by manually entering your username.
- Log out to check if your name is now on top of the list.
- If not, repeat step 4 a few more times, and hopefully it'll work.
Comment to say if this is successful for anyone else who still has problems!