canonical / lightdm

Display Manager
GNU General Public License v3.0
810 stars 137 forks source link

LightDM on Wayland? #267

Open AblatedSprocket opened 1 year ago

AblatedSprocket commented 1 year ago

In #102 the user asked if LightDM could run on Wayland, has this been done? A source would be great. I know it ran on mir, but I'm hoping for something more Wayland-specific.

Cameronsplaze commented 1 year ago

I think I'm extremely close to getting this to work. I'm doing it on a Fedora Server 37 iso, so no DM/DE is pre-installed.

1) Install core packages: sudo dnf install -y python3-pip nano wayland-devel lightdm

2) Install a lightdm greeter:

To setup a greeter, run `sudo nano --linenumbers /etc/lightdm/lightdm.conf`, **uncomment** and change the lines:
- (Line 102) change `greeter-session=example-gtk` to `greeter-session=<YOUR_GREETER_HERE>`

To find the greeter's name, `ls /etc/lightdm/*.conf`, but ignore `keys.conf`, `lightdm.conf`, and `users.conf`.

Ironically which greeter to use is where I'm stuck. I've tried elephant-greeter, lightdm-gtk-greeter, and io.elementary.greeter. When you set one up and it doesn't work, you can find the error at sudo tail -n100 /var/log/lightdm/lightdm.log

Cameronsplaze commented 1 year ago

I asked on Stack Exchange here, and I don't think it's possible without also running x11 yet. The logs from This lightdm issue show starting wayland as a display server, so you can run both side by side.

Gliese852 commented 8 months ago

What is this then? It says "doesn't require an X11 server".

Randomneo commented 3 months ago

got elephant-greeter working. I got in my system x11 and xwayland but I assume that this would work on wayland only setup.

https://github.com/cage-kiosk/cage/issues/257#issuecomment-1986900833

about $XDG_DATA_DIRS I just removed them and replaced with actual locations of my folders (Archlinux everything installed through pacman/aur)

greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters