Bug 2252315 - lightdm should start after systemd-hostnamed
Summary: lightdm should start after systemd-hostnamed
Keywords:
Status: CLOSED DUPLICATE of bug 2167386
Alias: None
Product: Fedora
Classification: Fedora
Component: lightdm
Version: 39
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Alternative GTK desktop environments
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-30 20:41 UTC by Thomas
Modified: 2023-12-30 17:52 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-12-30 17:52:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas 2023-11-30 20:41:45 UTC
On the machine in question, the host name is changed after lightdm is started.  This might have X reject connections from processes (esp. startxfce) started with a different host name than the one X itself was started with.

Solution would be: don't change the host name after lightdm was started, or, start lightdm only after the host name is settled.

Cf. https://github.com/canonical/lightdm/issues/291

Reproducible: Always

Steps to Reproduce:
1. Boot machine
2. Try to login
3.
Actual Results:  
Login kind of succeeds, but no session is started and the login screen is shown again.  .xsession-errors mentions X communication errors.

A second (and every further) login attempt succeeds.

Expected Results:  
Login succeeds on the first attempt.

Adding

After=systemd-hostnamed.service

to lightdm.service solves the problem.

Comment 1 Thomas 2023-12-30 17:52:45 UTC

*** This bug has been marked as a duplicate of bug 2167386 ***


Note You need to log in before you can comment on or make changes to this bug.