Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lightdm can't start a GNOME wayland session #56342

Open
worldofpeace opened this issue Feb 25, 2019 · 15 comments
Open

lightdm can't start a GNOME wayland session #56342

worldofpeace opened this issue Feb 25, 2019 · 15 comments
Labels
0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Milestone

Comments

@worldofpeace
Copy link
Contributor

worldofpeace commented Feb 25, 2019

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

@hedning
Copy link
Contributor

hedning commented Feb 25, 2019

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).

@worldofpeace
Copy link
Contributor Author

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

@hedning
Copy link
Contributor

hedning commented Feb 25, 2019

Cheers :)

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

@lePerdu
Copy link

lePerdu commented Apr 10, 2019

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)

@hedning
Copy link
Contributor

hedning commented Apr 10, 2019

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).

@lePerdu
Copy link

lePerdu commented Apr 10, 2019

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

@jtojnar jtojnar mentioned this issue Dec 9, 2019
3 tasks
@worldofpeace
Copy link
Contributor Author

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.

@worldofpeace worldofpeace added 0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS labels Jan 30, 2020
@hedning
Copy link
Contributor

hedning commented Jan 30, 2020

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.

@worldofpeace
Copy link
Contributor Author

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.

@hedning
Copy link
Contributor

hedning commented Jan 30, 2020

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.

@worldofpeace worldofpeace added this to the 20.09 milestone Mar 1, 2020
@stale
Copy link

stale bot commented Aug 28, 2020

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.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 28, 2020
@worldofpeace
Copy link
Contributor Author

still an issue

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 7, 2020
@FRidh FRidh modified the milestones: 20.09, 21.03 Dec 20, 2020
@tasmo
Copy link
Contributor

tasmo commented Feb 27, 2021

Still not working.

@stale
Copy link

stale bot commented Aug 28, 2021

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

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 28, 2021
@MohamedLEGH
Copy link

still not working.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Sep 23, 2022
@Artturin Artturin modified the milestones: 21.05, 23.05 Dec 31, 2022
@RaitoBezarius RaitoBezarius removed this from the 23.05 milestone May 31, 2023
@RaitoBezarius RaitoBezarius added this to the 23.11 milestone May 31, 2023
@JohnRTitor JohnRTitor added this to GNOME Jun 20, 2024
@JohnRTitor JohnRTitor moved this to To Do in GNOME Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: GNOME GNOME desktop environment and its underlying platform 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Projects
Status: To Do
Development

No branches or pull requests

8 participants