You are not logged in.

#1 2014-06-03 11:34:31

beatbreaker
Member
Registered: 2009-07-13
Posts: 46

Lightdm set default login

I'm currently trying to have lightdm have a "default" login session regardless of which session I was logged into last, I've not been able to manage this.

My current lightdm.conf file set up for autologin:

[SeatDefaults]
xserver-command=/usr/bin/X -bs -nolisten tcp
autologin-user=dude
autologin-user-timeout=0
user-session=XBMC
greeter-session=lightdm-gtk-greeter
allow-guest=false
default-user=dude

But then every time I go to a different session, for example "Desktop" a .dmrc file will be written recalling the last session that was used. I've tried chmoding it 444 it so that it can't be written to again but it seem that it gets replaces anyway possibly by the root user. If I was in the "Desktop" session and I reboot it'll take me back to the "Desktop" session. I want it so that regardless of what session I was in when I restart I'll be taken back to the "XBMC" session.

Offline

#2 2014-06-03 20:33:20

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Lightdm set default login

Instead of chmod'ing it try setting it to immutable, this way even root won't be able to modify the file.

chattr +i /path/to/file

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2014-06-04 07:36:03

beatbreaker
Member
Registered: 2009-07-13
Posts: 46

Re: Lightdm set default login

Thanks for that I'll give it a try.

What I'm also wondering is, if there's a "proper" way to do this instead of trying to hack an rc file to be not writable?

Edit The above solution did not work. There must be something else in lightdm that's remembering what the last login desktop was.

Last edited by beatbreaker (2014-06-04 13:24:35)

Offline

Board footer

Powered by FluxBB