Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3531

Raspberry Pi OS • How to change the session type for a specific user?

$
0
0
Hello,

I'm running Debian bookworm on the Raspberry Pi 5. All users log into the session LXDE-pi-labwc as confgured by default in lightdm.conf. I would like one user to always log into the session kodi. I've changed the XSession parameter in /var/lib/AccountsService/users/myuser but the user's effective session remains the one defined in lightdm.conf.

The kodi session is defined in /usr/share/xsessions/kodi.desktop.

LightDM is configured as follows in /etc/lightdm/lightdm.conf:

Code:

[Seat:*]greeter-session=pi-greeter-labwcgreeter-hide-users=falseuser-session=LXDE-pi-labwcdisplay-setup-script=/usr/share/dispsetup.shautologin-session=LXDE-pi-labwc
I've set the parameter XSession=kodi in /var/lib/AccountsService/users/myuser (as described here):

Code:

[User]XSession=kodiIcon=/home/myuser/.faceSystemAccount=false
After reboot and login, this file gets rewritten to:

Code:

[User]Session=kodiXSession=LXDE-pi-labwcIcon=/home/myuser/.faceSystemAccount=false
The only way to change the effective session is to change the lightdm.conf global parameter user-session, which I don't want to do.

Statistics: Posted by CutterX — Tue Sep 16, 2025 3:42 pm



Viewing all articles
Browse latest Browse all 3531

Trending Articles