Skip to content

lightdm can't start a GNOME wayland session #56342

Closed

Description

@worldofpeace

Issue description

Mostly opening for investigation, someone in IRC mentioned that they couldn't
get a wayland session to start when using lightdm, as they noticed this when $XDG_SESSION_TYPE == x11.

I was then able to reproduce this within a VM.

Steps to reproduce

  1. Enable GNOME3 and use lightdm as a display-manager
  2. Try to start the GNOME session
  3. Realize that you're running the gnome-xorg session

cc @hedning @jtojnar

Activity

  1. hedning commented on Feb 25, 2019

    @hedning
    Contributor

    Yeah, I didn't turn it on in the gnome wayland pr as lightdm didn't handle the duplicate gnome.desktop sesssion names:

    sessions-directory = ${dmcfg.session.desktops}/share/xsessions

    #53843 turns it on (note this pr needs to be updated for pantheon).

  2. worldofpeace commented on Feb 25, 2019

    @worldofpeace
    ContributorAuthor

    Yeah, I didn't turn it on in the gnome wayland pr as lightdm didn't handle the duplicate gnome.desktop sesssion names

    Thanks for the heads up

    #53843 turns it on (note this pr needs to be updated for pantheon).

    I'll push some fixup commits to that branch so it can work for pantheon

  3. hedning commented on Feb 25, 2019

    @hedning
    Contributor

    Cheers :)

    According to upstream it's up to the specific greeter to handle duplicates: ubuntu/lightdm#16

  4. lePerdu commented on Apr 10, 2019

    @lePerdu

    This isn't specific to LightDM: GDM does the same thing for me. I don't know how all of the XSession stuff works, but I looked at the .desktop files in /nix/store/...gnome-session... (xsessions/gnome.desktop, xsessions/gnome-xorg.desktop, and wayland-sessions/gnome.desktop) and found them identical except for the "Name" field. Am I missing something, or should the "Exec" fields (and possibly others) be different for the XOrg and Wayland sessions?

    EDIT: The corresponding files are the same in Fedora (which runs the Wayland session), so I guess that isn't the problem (GDM still runs the X session for both in NixOS, however)

  5. hedning commented on Apr 10, 2019

    @hedning
    Contributor

    Yeah, there's some behind the scenes stuff being done depending on where the desktop files reside (ie. wayland-sesisons/ vs. xsessions/)

    GDM still runs the X session for both in NixOS

    Works here. nixos-18.09 doesn't have gnome wayland support, that might be what you're seeing. Otherwise I would double check that services.xserver.displayManager.gdm.wayland is true (should be by default). There might be some hardware thing too (eg. nvidia card with the proprietary drivers, don't think we support that yet).

  6. lePerdu commented on Apr 10, 2019

    @lePerdu

    I'm on the nixos-unstable channel and can start the GNOME wayland session manually with

    env XDG_SESSION_TYPE=wayland dbus-run-session /nix/store/...gnome-session-3.28.1/bin/gnome-session
    
  7. worldofpeace commented on Jan 30, 2020

    @worldofpeace
    ContributorAuthor

    LightDM can now start wayland sessions, it needed a patch upstream that I provided

    However it is broken with GNOME still. Haven't had time to debug it.

  8. added
    6.topic: GNOMEGNOME desktop environment and its underlying platform
    6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS
    on Jan 30, 2020
  9. hedning commented on Jan 30, 2020

    @hedning
    Contributor

    I'm guessing lightdm finds the xsession first (since there's a gnome.desktop in both). Should probably work to just add the wayland session dir before the xsession one. Checking now.

  10. worldofpeace commented on Jan 30, 2020

    @worldofpeace
    ContributorAuthor

    Oh, I forgot to mention how when I tested, I worked around the duplicate session name bug (which plasma5 actually compensates for in sddm, gnome could do similar).
    I removed the xsessions from gnome-session in testing to be sure.

  11. hedning commented on Jan 30, 2020

    @hedning
    Contributor

    Ahh, right, using the wayland dir first worked, in the sense that it tries to launch a wayland session. But something is indeed broken as it won't start the session.

  12. added this to the 20.09 milestone on Mar 1, 2020
  13. stale commented on Aug 28, 2020

    @stale

    Hello, I'm a bot and I thank you in the name of the community for opening this issue.

    To help our human contributors focus on the most-relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 180 days, and so I marked it as stale, but you can rest assured it will never be closed by a non-human.

    The community would appreciate your effort in checking if the issue is still valid. If it isn't, please close it.

    If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me". If you'd like it to get more attention, you can ask for help by searching for maintainers and people that previously touched related code and @ mention them in a comment. You can use Git blame or GitHub's web interface on the relevant files to find them.

    Lastly, you can always ask for help at our Discourse Forum or at #nixos' IRC channel.

  14. 6 remaining items

  15. stale commented on Aug 28, 2021

    @stale

    I marked this as stale due to inactivity. → More info

  16. added
    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
    on Aug 28, 2021
  17. MohamedLEGH commented on Sep 23, 2022

    @MohamedLEGH

    still not working.

  18. removed
    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
    on Sep 23, 2022
  19. modified the milestones: 21.05, 23.05 on Dec 31, 2022
  20. modified the milestones: 23.05, 23.11 on May 31, 2023
  21. moved this to To Do in GNOMEon Jun 20, 2024
  22. added
    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
    on Jul 3, 2025
  23. qweered commented on May 25, 2026

    @qweered
    Contributor

    Gnome is wayland only now, if anyone still have this issue please comment

  24. moved this from To Do to Done in GNOMEon May 25, 2026
  25. removed this from the 23.11 milestone on May 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: GNOMEGNOME desktop environment and its underlying platform6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions