Open AblatedSprocket opened 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
lightdm-gtk-greeter
and io.elementary.greeter
failed since they're trying to start a x11 server, and I don't have one installed. I can't find if they support wayland, and/or how to switch them to use wayland instead.elephant-greeter
since it uses cage (a way to emulate a x11 server inside wayland). It got the farthest, but it wants XDG_* variables declared (specifically XDG_RUNTIME_DIR). I can't find if there's a tiny package you can install to set them, or if you need to install the whole x11 bloat to get it to work.
#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
, a XDG variable on something that supports wayland too. That variable isn't set when I echo it, but lightdm is still able to find the greeters as I change them around and debug them. I'm not sure what's going on there.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.
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
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.