You are not logged in.

#1 2016-10-25 13:20:53

doragasu
Member
Registered: 2012-03-03
Posts: 159

[SOLVED] Problem with lightdm and sessions

Until now I was running lightdm with i3 window manager without (many) problems. But now I want to also be able to select xfce4 session. I have installed XFCE4, and I can start it by calling startxfce4 from the console. But lightdm does not show the session selection menu, and it always executes i3 session, no matter what I do. I have even setting user-session=xfce4 in /etc/lightdm/lightdm.conf, but only i3 session is launched.

How can I get lightdm to allow me to select session?

Last edited by doragasu (2016-10-28 07:15:52)

Offline

#2 2016-10-25 20:56:25

seth
Member
Registered: 2012-09-03
Posts: 64,887

Re: [SOLVED] Problem with lightdm and sessions

~/.dmrc should be relevant, no idea why you've no session selection menu; probably a bug in the used (which?) lightdm greeter?

Offline

#3 2016-10-26 07:13:46

doragasu
Member
Registered: 2012-03-03
Posts: 159

Re: [SOLVED] Problem with lightdm and sessions

Thanks for suggestion. I have tried setting Session=xfce4 in ~/.dmrc so it's now like this:

[Desktop]
Language=es_ES.utf8
Session=xfce4

But it does neither work, i3 is again launched by lightdm. I'm using lightdm-gtk-greeter with default configuration BTW.

Offline

#4 2016-10-26 13:23:18

seth
Member
Registered: 2012-09-03
Posts: 64,887

Re: [SOLVED] Problem with lightdm and sessions

Session=xfce

Offline

#5 2016-10-27 17:09:48

doragasu
Member
Registered: 2012-03-03
Posts: 159

Re: [SOLVED] Problem with lightdm and sessions

seth wrote:

Session=xfce

Thanks for suggestion. Unfortunately that didn't do the trick sad

Offline

#6 2016-10-27 21:02:13

seth
Member
Registered: 2012-09-03
Posts: 64,887

Re: [SOLVED] Problem with lightdm and sessions

Outmost weird.
From the wiki:

dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User1000 org.freedesktop.Accounts.User.SetXSession string:xfce

Replace 1000 by your actual $UID

Are you sure you're running lightdm ("sudo systemctl list-units | grep lightdm") and not XDM (which just fires your ~/.xinitrc)?

Offline

#7 2016-10-28 06:43:21

doragasu
Member
Registered: 2012-03-03
Posts: 159

Re: [SOLVED] Problem with lightdm and sessions

That worked perfect, Thanks! Now xfce is properly started upon login.

BTW I'm pretty sure I'm running lightdm:

$ sudo systemctl list-units | grep lightdm
lightdm.service                                                                                       loaded active running   Light Display Manager

Even though I can now start xfce, I'll still leave this open, just in case somebody knows why lightdm does not display a session selector...

EDIT: I didn't notice at first, but since xfce has been properly started once, it looks like session chooser now appears and works!

So I'm marking this as solved, Thanks!!!

Last edited by doragasu (2016-10-28 07:15:40)

Offline

Board footer

Powered by FluxBB