Bug 1821790 - 'Gnome' session type of lightdm launch an X11 version of Gnome rather than the Wayland one
Summary: 'Gnome' session type of lightdm launch an X11 version of Gnome rather than th...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: lightdm
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alternative GTK desktop environments
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/canonical/lightdm/...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-07 15:55 UTC by Paul Dufresne
Modified: 2020-04-25 02:19 UTC (History)
6 users (show)

Fixed In Version: lightdm-1.30.0-9.fc31 lightdm-1.30.0-9.fc30 lightdm-1.30.0-9.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-16 22:40:55 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Paul Dufresne 2020-04-07 15:55:29 UTC
Description of problem:
When using lightdm, and launching 'Gnome' (not Gnome on Xorg or Gnome Classics), the value of $XDG_SESSION_TYPE=x11 and echo $WAYLAND_DISPLAY result in nothing.
When enabling GDM and disabling LightDM, this problem goes away.

Version-Release number of selected component (if applicable):
[paul@localhost ~]$ sudo dnf repoquery --installed|grep lightdm
[sudo] Mot de passe de paul : 
lightdm-0:1.30.0-8.fc32.x86_64
lightdm-gobject-0:1.30.0-8.fc32.x86_64
lightdm-gtk-0:2.0.6-3.fc32.x86_64

How reproducible:
Tested it only once

Steps to Reproduce:
1. Have default F32 Workstation installed
2. sudo dnf install lightdm
3. sudo systemctl disable gdm
4. sudo systemctl enable lightdm
5. reboot
6. Select user
7. In upper-right, choose 'Gnome' session type
8. Login
9. Open terminal
10. echo $WAYLAND_DISPLAY

Actual results:
empy line

Expected results:
wayland-0

Comment 1 Rex Dieter 2020-04-07 19:33:38 UTC
lightdm by default lists sessions from any of these directories:

lightdm.conf:#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions

I take it you probably have a gnome-related one in both /usr/share/xsessions and /usr/share/wayland-sessions?

Is it possible they're both named the same thing?

Comment 2 leigh scott 2020-04-07 19:50:27 UTC
(In reply to Rex Dieter from comment #1)
> lightdm by default lists sessions from any of these directories:
> 
> lightdm.conf:#sessions-directory=/usr/share/lightdm/sessions:/usr/share/
> xsessions:/usr/share/wayland-sessions
> 
> I take it you probably have a gnome-related one in both /usr/share/xsessions
> and /usr/share/wayland-sessions?
> 
> Is it possible they're both named the same thing?

I removed /usr/share/wayland-sessions  because it wasn't possible to launch wayland sessions

https://src.fedoraproject.org/rpms/lightdm/c/1c37d517f59a3e89ee967ad6ae4803e6f0c57132?branch=master

Feel free to revert it if you can launch wayland sessions, I couldn't even on Intel hardware.

Comment 3 Rex Dieter 2020-04-07 20:10:03 UTC
OK, so sounds like this was done on purpose.  Nevermind my question then.

Comment 4 leigh scott 2020-04-08 14:56:58 UTC
(In reply to Rex Dieter from comment #1)
> lightdm by default lists sessions from any of these directories:
> 
> lightdm.conf:#sessions-directory=/usr/share/lightdm/sessions:/usr/share/
> xsessions:/usr/share/wayland-sessions
> 
> I take it you probably have a gnome-related one in both /usr/share/xsessions
> and /usr/share/wayland-sessions?
> 
> Is it possible they're both named the same thing?

Deleting /usr/share/xsessions/gnome.desktop and reverting this commit enables gnome wayland

https://src.fedoraproject.org/rpms/lightdm/c/1c37d517f59a3e89ee967ad6ae4803e6f0c57132?branch=master

Do you think the commit should be reverted and this issue reassigned to gnome so they can address the session desktop files with the same name?

Comment 5 Rex Dieter 2020-04-08 15:52:24 UTC
the gnome issue should be considered a separate issue/bug

that said, I have doubts they will be willing to fix it on their side. I predict they'll claim it should be the display manager's job to distinguish between X/wayland sessions (since that's what gdm does, the expectation is that other display managers follow suit)

Comment 6 leigh scott 2020-04-08 20:41:55 UTC
(In reply to Rex Dieter from comment #5)
> the gnome issue should be considered a separate issue/bug
> 
> that said, I have doubts they will be willing to fix it on their side. I
> predict they'll claim it should be the display manager's job to distinguish
> between X/wayland sessions (since that's what gdm does, the expectation is
> that other display managers follow suit)

Upstream have a report https://github.com/canonical/lightdm/issues/58

I could revert the lightdm commit and ignore the gnome issue as it's no my duty to fix.

Comment 7 Fedora Update System 2020-04-08 21:12:18 UTC
FEDORA-2020-e65f3355b1 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-e65f3355b1

Comment 8 Fedora Update System 2020-04-08 21:12:19 UTC
FEDORA-2020-c4ccb19308 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-c4ccb19308

Comment 9 Fedora Update System 2020-04-08 21:20:37 UTC
FEDORA-2020-87c60d66ee has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-87c60d66ee

Comment 10 Fedora Update System 2020-04-09 18:38:26 UTC
FEDORA-2020-c4ccb19308 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-c4ccb19308`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-c4ccb19308

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2020-04-09 19:13:47 UTC
FEDORA-2020-e65f3355b1 has been pushed to the Fedora 31 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-e65f3355b1`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-e65f3355b1

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2020-04-09 20:14:21 UTC
FEDORA-2020-87c60d66ee has been pushed to the Fedora 30 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-87c60d66ee`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-87c60d66ee

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2020-04-16 22:40:55 UTC
FEDORA-2020-e65f3355b1 has been pushed to the Fedora 31 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2020-04-18 02:31:36 UTC
FEDORA-2020-87c60d66ee has been pushed to the Fedora 30 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2020-04-25 02:19:38 UTC
FEDORA-2020-c4ccb19308 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.


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