Skip to main content
Notice removed Draw attention by CommunityBot
Bounty Ended with no winning answer by CommunityBot
edited tags
Link
Notice added Draw attention by Cutter
Bounty Started worth 100 reputation by Cutter
deleted 14 characters in body
Source Link
Cutter
  • 71
  • 1
  • 5

I'm running Debian on a Raspberry Pi 5. All users log into the session LXDE-pi-labwc as confgured 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:

[Seat:*]
greeter-session=pi-greeter-labwc
greeter-hide-users=false
user-session=LXDE-pi-labwc
display-setup-script=/usr/share/dispsetup.sh
autologin-session=LXDE-pi-labwc

I've set the parameter XSession=kodi in /var/lib/AccountsService/users/myuser:

[User]
XSession=kodi
Icon=/home/myuser/.face
SystemAccount=false

After reboot and login, this file gets rewritten to:

[User]
Session=kodi
XSession=LXDE-pi-labwc
Icon=/home/myuser/.face
SystemAccount=false

The only way to change the effective session is to change the lightdm.conf global parameter user-session for all users, which I don't want to do.

I'm running Debian on a Raspberry Pi 5. All users log into the session LXDE-pi-labwc as confgured 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:

[Seat:*]
greeter-session=pi-greeter-labwc
greeter-hide-users=false
user-session=LXDE-pi-labwc
display-setup-script=/usr/share/dispsetup.sh
autologin-session=LXDE-pi-labwc

I've set the parameter XSession=kodi in /var/lib/AccountsService/users/myuser:

[User]
XSession=kodi
Icon=/home/myuser/.face
SystemAccount=false

After reboot and login, this file gets rewritten to:

[User]
Session=kodi
XSession=LXDE-pi-labwc
Icon=/home/myuser/.face
SystemAccount=false

The only way to change the effective session is to change the lightdm.conf global parameter user-session for all users, which I don't want to do.

I'm running Debian on a Raspberry Pi 5. All users log into the session LXDE-pi-labwc as confgured 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:

[Seat:*]
greeter-session=pi-greeter-labwc
greeter-hide-users=false
user-session=LXDE-pi-labwc
display-setup-script=/usr/share/dispsetup.sh
autologin-session=LXDE-pi-labwc

I've set the parameter XSession=kodi in /var/lib/AccountsService/users/myuser:

[User]
XSession=kodi
Icon=/home/myuser/.face
SystemAccount=false

After reboot and login, this file gets rewritten to:

[User]
Session=kodi
XSession=LXDE-pi-labwc
Icon=/home/myuser/.face
SystemAccount=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.

Source Link
Cutter
  • 71
  • 1
  • 5

How to change the session type for a specific user?

I'm running Debian on a Raspberry Pi 5. All users log into the session LXDE-pi-labwc as confgured 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:

[Seat:*]
greeter-session=pi-greeter-labwc
greeter-hide-users=false
user-session=LXDE-pi-labwc
display-setup-script=/usr/share/dispsetup.sh
autologin-session=LXDE-pi-labwc

I've set the parameter XSession=kodi in /var/lib/AccountsService/users/myuser:

[User]
XSession=kodi
Icon=/home/myuser/.face
SystemAccount=false

After reboot and login, this file gets rewritten to:

[User]
Session=kodi
XSession=LXDE-pi-labwc
Icon=/home/myuser/.face
SystemAccount=false

The only way to change the effective session is to change the lightdm.conf global parameter user-session for all users, which I don't want to do.