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.

  • I know that there is ~/.dmrc file wich has last session type. Maybe greeter can use that file? – Kuznets Jul 8 '17 at 16:21
  • Looked at this question? – xenoid Jul 8 '17 at 17:43
  • @xenoid, thanks, I have tried to change ~/.dmrc file, but it doesn'r work. – Kuznets Jul 8 '17 at 21:38
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.