I have problem with lightdm setting autologin session type (using my config tool). Lightdm logs into previously selected session. I see that autologin-session is UNIMPLEMENTED in version 1.2.1. Maybe I can somehow cheat lightdm? but it seems program writes actual state when stopping and overwrites my changes to /home/user/.dmrc and /var/cache/lightdm/user.dmrc.
At the current I have two sessions: default and kiosk. in /etc/lightdm/lightdm.conf I have line: user-session=desktop
but after I logged into kiosk session it starts all the time. Changing .dmrc and /var/cache/lightdm/dmrc/user.dmrc doesn't work.
I think I will try nodm display manager because what I really want to achieve is run GUI session choosen by admin in gui config tool. Another lower-level tool is rungetty - but I don't know this program (I found some tutorials).
Resolved!
Finnaly, after 2 days of trying nodm, lxdm, rungetty, etc. I've found (not so)simple solution for lightdm
:
dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User1000 org.freedesktop.Accounts.User.SetXSession string:kiosk
this sets default xsession to kiosk
for user with id 1000
.
In future there probably will be option autologin-session
in config file doing the same (marked as UNIMPLEMENTED
now).