You are not logged in.

#1 2022-01-16 18:43:29

musbur
Member
Registered: 2022-01-14
Posts: 46

[SOLVED] Lightdm + .xsession "Failed to start session"

Hello,

I'm trying to set up logging in through the lightdm-gtk-greeter with $HOME/.xsession. But after entering my password, lightdm displays "Failed to start session".

Here's my .xsession:

#!/bin/sh
exec /usr/local/bin/dwm

When I log in at the virtual (text) console, I can start dwm just fine with "sx /usr/local/bin/dwm"

I have the impression that lightdm doesn't even try to start /etc/lightdm/Xsession because I can't find the first "echo" line in any logs.

Last edited by musbur (2022-01-19 15:21:28)

Offline

#2 2022-01-16 21:46:14

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Lightdm + .xsession "Failed to start session"

I'm trying to set up logging in through the lightdm-gtk-greeter with $HOME/.xsession.

How exactly?
https://wiki.archlinux.org/title/Displa … _a_session
https://aur.archlinux.org/packages/xinit-xsession/ runs ~/.xinitrc, not ~/.xsession

Offline

#3 2022-01-17 18:54:09

musbur
Member
Registered: 2022-01-14
Posts: 46

Re: [SOLVED] Lightdm + .xsession "Failed to start session"

seth wrote:

I'm trying to set up logging in through the lightdm-gtk-greeter with $HOME/.xsession.

How exactly?

Like this (unchanged config file):

    $ grep -v '^#' /etc/lightdm/lightdm.conf
    [LightDM]
    run-directory=/run/lightdm

    [Seat:*]
    session-wrapper=/etc/lightdm/Xsession

    [XDMCPServer]

    [VNCServer]
    $
    $ tail /etc/lightdm/Xsession
    # Run user xsession shell script
    script="$HOME/.xsession"
    if [ -x "$script" -a ! -d "$script" ]; then
        echo "Loading xsession script $script"
        . "$script"
    fi
    echo "X session wrapper complete, running session $@"
    exec $@
    $

I tried to follow this documentation: https://wiki.archlinux.org/title/LightDM, but what it doesn't mention, is that I need this file:

    $ cat /usr/share/xsessions/default.desktop
    [Desktop Entry]
    Name = Xsession
    Exec = /etc/lightdm/Xsession
    $

This solved my issue. I know I'm supposed to change the title to [Solved] ... But how to edit the title?

Offline

#4 2022-01-17 20:36:24

seth
Member
Registered: 2012-09-03
Posts: 51,213

Re: [SOLVED] Lightdm + .xsession "Failed to start session"

I know I'm supposed to change the title to [Solved] ... But how to edit the title?

Editing your initial post allows you to edit the subject of the thread and simply prepend the token.

Offline

Board footer

Powered by FluxBB