[SRU] KDE does not start when using lightdm

Bug #1629543 reported by Thomas Gebert
36
This bug affects 6 people
Affects Status Importance Assigned to Milestone
plasma-workspace (Ubuntu)
Fix Committed
High
Scarlett Gately Moore
Noble
Fix Committed
Undecided
Unassigned

Bug Description

When switching the displaymanager from sddm to lightdm, login fails due to misconfigured lightdm configuration file.

$ cat /usr/share/lightdm/lightdm.conf.d/40-kde-plasma-kf5.conf
[SeatDefaults]
user-session=kde-plasma-kf5

$ls /usr/share/xsessions/*
/usr/share/xsessions/plasma.desktop

#####

Changing /usr/share/lightdm/lightdm.conf.d/40-kde-plasma-kf5.conf to

$ cat /usr/share/lightdm/lightdm.conf.d/40-kde-plasma-kf5.conf
[SeatDefaults]
user-session=plasma

or renaming /usr/share/xsessions/plasma.desktop to /usr/share/xsessions/kde-plasma-kf5.desktop solves the issue.

#####

$ lsb_release -rd
Description: Ubuntu 16.04.1 LTS
Release: 16.04

$ apt-cache policy plasma-workspace
plasma-workspace:
  Installed: 4:5.5.5.2-0ubuntu1
  Candidate: 4:5.5.5.2-0ubuntu1
  Version table:
 *** 4:5.5.5.2-0ubuntu1 500
        500 http://de.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

#####

tags: added: xenial
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Hello, thanks for reporting this, but in order to properly triage this, I need more information.

How exactly did you install LightDM? Did you remove SDDM after installing LightDM?

And most importantly, is this still an issue for you?

This looks awfully similar to a bug I've seen before, so for now I'm marking as Incomplete, but if this still affects you, please change it back to New.

Thanks for making Kubuntu better! :)

Changed in plasma-workspace (Ubuntu):
status: New → Incomplete
Revision history for this message
Thomas Gebert (thomaswood) wrote :

Hi Simon,

> How exactly did you install LightDM? Did you remove SDDM after installing LightDM?
I did not remove SDDM after the installation of LightDM and just ran the configuration and set LightDM as default.

At the moment it is not really an issue for us, as we apply the above mentioned workaround:

$ cat /usr/share/lightdm/lightdm.conf.d/40-kde-plasma-kf5.conf
[SeatDefaults]
user-session=kde-plasma-kf5

Let me know if you need further information.

Thanks
Thomas

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for plasma-workspace (Ubuntu) because there has been no activity for 60 days.]

Changed in plasma-workspace (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Tomasz Makara (csowiec) wrote :

2020 and still not fixed, thanks for solution

Revision history for this message
Open Sense Solutions (opensense) wrote :

I ran into the same problem in 20.04 after switching to lightdm and it took me a while to figure out.

Just as Simon pointed out:
/usr/share/lightdm/lightdm.conf.d/40-kde-plasma-kf5.conf
should have:
user-session=plasma
instead of
user-session=kde-plasma-kf5
since there is no kde-plasma-kf5.desktop in /usr/share/xsessions

I understand that most people aren't switching the display manager but this is such an easy fix I'd hope that it's done to save a lot of frustration for the few that do.

Changed in plasma-workspace (Ubuntu):
status: Expired → New
Revision history for this message
Dieter Toews (dtoews) wrote :

This is still a problem in Ubuntu/Kubuntu & Linux mint with KDE.

Please fix this one liner!

Revision history for this message
John Chaney (jdally987) wrote :

Just chiming in to say that opensense's solution above also fixed it for me. I created /etc/lightdm/lightdm.conf and put in it:

[SeatDefaults]
user-session=plasma

and it worked to fix the "Failed to start session" error in the greeter after entering my password.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in plasma-workspace (Ubuntu):
status: New → Confirmed
Changed in plasma-workspace (Ubuntu):
status: Confirmed → Incomplete
Changed in plasma-workspace (Ubuntu):
status: Incomplete → In Progress
assignee: nobody → Scarlett Gately Moore (scarlettmoore)
importance: Undecided → High
Changed in plasma-workspace (Ubuntu):
status: In Progress → Fix Committed
Changed in plasma-workspace (Ubuntu Noble):
milestone: none → noble-updates
Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

[ Impact ]

 * Switch to lightdm and plasma will not load.

[ Test Plan ]

 * Switch to plasma and lightdm will not load.

[ Where problems could occur ]

 * This only affects lightdm users.

summary: - KDE does not start when using lightdm
+ [SRU] KDE does not start when using lightdm
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in plasma-workspace (Ubuntu Noble):
status: New → Confirmed
Changed in plasma-workspace (Ubuntu Noble):
status: Confirmed → Fix Committed
Revision history for this message
Robie Basak (racb) wrote :

Accepting, but please fix the Test Plan. These should be step by step instructions on how to reproduce the problem, and it should be possible for a developer not familiar with the package to follow the steps unambiguously. What is the starting point? Which method to "switch to plasma" should they use? What should they see if the test is successful, and what do they see when the test fails?

tags: added: verification-needed verification-needed-noble
Revision history for this message
Robie Basak (racb) wrote : Please test proposed package

Hello Thomas, or anyone else affected,

Accepted plasma-workspace into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/plasma-workspace/4:5.27.11-0ubuntu4.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (plasma-workspace/4:5.27.11-0ubuntu4.2)

All autopkgtests for the newly accepted plasma-workspace (4:5.27.11-0ubuntu4.2) for noble have finished running.
The following regressions have been reported in tests triggered by the package:

systray-mdstat/1.2.0-2 (armhf)
systray-mdstat/unknown (s390x)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/noble/update_excuses.html#plasma-workspace

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
KDE (kde-community) wrote :

These regressions are now fixed by rebuilds.

Revision history for this message
Scarlett Gately Moore (scarlettmoore) wrote :

[ Test Plan ]

 * Switch to lightdm login manager. Without proposed package, plasma will fail to load.

 * Install proposed package. Plasma will now load.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.