1

I have Arch linux installed on my PC. There are two users and I want to configure LightDM than when first user login Awesome WM starts and when the second user login LXQt starts. I don't want that each user had to change DE manualy. Is it possible?

Login means ordinary login via LightDM-GTK-Greeter.

Kuznets
  • 41

1 Answers1

1

I have found a solution here.

So for my case, I created a new xsession file:

/usr/share/xsessions/smart_de.desktop

[Desktop Entry]
Type=Application
Exec=/usr/share/startDE.sh 
Name=Smart DE change
Comment=Awesome for user1 and LXQt for others

and a script that launches a special DE for each user:

/usr/share/startDE.sh

#!/bin/bash
if [ "$USER" = "user1" ]; then
        exec awesome
else
        exec startlxqt
fi
Kuznets
  • 41