SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2015-01-07 04:12:37

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

[SOLVED] Trying to understand LightDM's default session

In /usr/share/xsessions there is a desktop file name Default Session (lightdm-xsession.desktop). The exec line there is Exec=default. So in the greeter screen, the list of sessions is Default Session and then whatever other session desktop files have been created. In my case, that launches Xfce's desktop file (xfce.desktop). What is telling LightDM that that's the default session and not another desktop file in /usr/share/xsessions?

I know that LightDM will log me into the last session I've used if I don't select a new session in the greeter, and I realize I could change the Exec=default line to something else, but I'm curious as to what is actually happening. LightDM's documentation and the web are not helping me.

Last edited by hhh (2015-01-07 18:00:11)

Offline

Be excellent to each other!

#2 2015-01-07 05:02:46

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: [SOLVED] Trying to understand LightDM's default session

If I remember correctly (don't trust me though), there will be a file named ~/.dmrc written in which the session is actually defined.

Offline

#3 2015-01-07 05:59:24

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

Re: [SOLVED] Trying to understand LightDM's default session

[Desktop]
Session=xfce
Language=en_US.utf8

Offline

#4 2015-01-07 07:21:28

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: [SOLVED] Trying to understand LightDM's default session

Yeah it's confusing - I think that LightDM simply takes the x-window-manager/x-session-manager  that is set with highest priorities in update-alternatives. They are (or should be) also listed in /usr/share/xsessions. If there is no default set there (which might happen when an upgrade failed), it would fall back to the xsession defined in /etc/X11 (which is usually just x-terminal-emulator without anything else), so that the user can fix the problem.

That's the fun part when 'desktop standards' (freedesktop.org, xdg, exo, etc etc) push themselves into the 'user-friendliness' zone. They'd rather just make a dotfile and a safety copy, but no. smile

Offline

#5 2015-01-07 07:32:48

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

Re: [SOLVED] Trying to understand LightDM's default session

There used to be a script, lightdm-set-defaults, that wrote a *.conf file to /usr/share/lightdm/lightdm.conf.d/ but that's been removed in the latest LightDM. That folder now contains one file, 01_debian.conf, it appears also to be static...

# Debian specific defaults
#
# - use lightdm-greeter session greeter, points to the etc-alternatives managed
# greeter
# - hide users list by default, we don't want to expose them
# - use Debian specific session wrapper, to gain support for
# /etc/X11/Xsession.d scripts

[SeatDefaults]
greeter-session=lightdm-greeter
greeter-hide-users=true
session-wrapper=/etc/X11/Xsession

man lightdm shows nothing about configuring the default session. The Ubuntu Wiki says to add user-session=fusilli (for instance) to the file in /usr/share/lightdm/lightdm.conf.d/ but that does nothing AFAICT. I guess the way to go is to edit lightdm-xsession.desktop. So I'm clueless as to what Exec=default calls in that file.

Thanks for the replies! See you at the BBQ.

-edit- I'll try update-alternatives --config x-window-manager first. Thanks for that!

Last edited by hhh (2015-01-07 07:34:23)

Offline

#6 2015-01-07 08:06:08

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

Re: [SOLVED] Trying to understand LightDM's default session

sudo update-alternatives --config x-window-manager
There is only one alternative in link group x-window-manager (providing /usr/bin/x-window-manager): /usr/bin/xfwm4

But I'm starting to understand, after taking a look at man update-alternatives (not an easy read!) A set of symlinks to libraries. So in my case, just testing a window manager in heavy development, letting lightdm do it's thing is the way to go. Now if I could even begin to understand how it knows to load fusilli.desktop if .dmrc only contains Exec=lightdm-xsession and lightdm-xsession.desktop only says Exec=default.  tongue

Offline

#7 2015-01-07 08:32:29

machinebacon
#! unstable
From: China
Registered: 2009-07-02
Posts: 6,826
Website

Re: [SOLVED] Trying to understand LightDM's default session

Offline

#8 2015-01-07 11:09:19

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2012-03-22
Posts: 1,026
Website

Re: [SOLVED] Trying to understand LightDM's default session

I don't know if this will help, but isn't there also a config file /etc/lightdm.conf or /etc/lightdm/lightdm.conf or /etc/lightdm.d/* (at the moment I don't have access to lightdm-installed system)? Perhaps, there are some important config stuff ...

BTW, are you talking about systemd or init OS?

Offline

#9 2015-01-07 16:14:23

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: [SOLVED] Trying to understand LightDM's default session

user-session=default   <---  uses the /usr/share/xsessions/

Last edited by PackRat (2015-01-07 16:32:08)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#10 2015-01-07 17:59:33

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

Re: [SOLVED] Trying to understand LightDM's default session

# update-alternatives --install /usr/bin/x-session-manager \
       x-session-manager /usr/local/bin/fusilli 50

Last edited by hhh (2015-01-11 01:46:54)

Offline

#11 2015-01-07 18:32:11

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: [SOLVED] Trying to understand LightDM's default session

Yes it is.

We went through these same hoops a while back.

I don't know if you read through all of that, but there was a legacy .xsession file in the /etc/skel of VSIDO that was messing me up. Once I got rid of that updating the /etc/alternatives worked.

I didn't link that thread here because I wasn't sure that an actual fix or just a work around.

Did that thread actually come up in an internet search, or were you just looking at other Debian sites?

Last edited by PackRat (2015-01-07 18:39:04)


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#12 2015-01-07 20:42:11

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

Re: [SOLVED] Trying to understand LightDM's default session

It's currently the second Google result for lightdm update alternatives /usr/local.  smile

Offline

#13 2015-01-09 20:41:25

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: [SOLVED] Trying to understand LightDM's default session

Well then, I hope we did it right over there.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#14 2015-03-28 22:49:45

bAjdA
New Member
From: Dnipropetrovsk, Ukraine
Registered: 2015-03-27
Posts: 1

Re: [SOLVED] Trying to understand LightDM's default session

Last edited by bAjdA (2015-03-28 22:53:20)

Offline

#15 2015-03-31 17:29:27

hhh
Cityspeak
Registered: 2010-08-04
Posts: 3,253

Re: [SOLVED] Trying to understand LightDM's default session

sudo dpkg-reconfigure locales

Last edited by hhh (2015-03-31 17:30:34)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo