dimkr / LoginKit

A standalone logind shim - GitHub mirror
https://git.devuan.org/pkgs-utopia-substitution/loginkit
MIT License
32 stars 3 forks source link

GDM fails to start #2

Open dimkr opened 9 years ago

dimkr commented 9 years ago

Currently, LoginKit's goal is to make it possible to use GDM on Ubuntu 14.04/Trisquel 7, without having to install systemd-services and libsystemd-login0 (which come from systemd 204).

(I looked at GDM 3.15.2 - it requires the same API) (don't play with LoginKit unless you know what you're doing! use a VM)

At the moment, GDM fails to start:

export G_DEBUG_MODULES=LoginKit
export LD_LIBRARY_PATH=`pwd`
cp pam_loginkit.so /lib/x86_64-linux-gnu/security/
sed s~systemd~loginkit~g -i /etc/pam.d/common-session
killall systemd-logind; ./loginkitd
gdm
gdm[2420]: GdmDisplay: display lasted 0.079886 seconds
gdm[2420]: GdmDisplay: display lasted 0.076646 seconds
gdm[2420]: GdmDisplay: display lasted 0.076771 seconds
gdm[2420]: GdmDisplay: display lasted 0.084295 seconds
gdm[2420]: GdmDisplay: display lasted 0.087672 seconds
gdm[2420]: GdmDisplay: display lasted 0.079147 seconds
gdm[2420]: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors
dimkr commented 9 years ago

The Inhibit and GetSession D-Bus calls are missing. WIP.

gnome-session[1194]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
dimkr commented 9 years ago

One step closer! gnome-shell crashes a bit further, when it calls Inhibit().

dimkr commented 9 years ago

8a86c21b9a3753a59186fb037ced1f97835c7c88 implements Inhibit() and more power management methods. Still untested, though.

dimkr commented 9 years ago

Almost there! http://tinypic.com/r/2i9jlop/8

dimkr commented 9 years ago

Seems ConsoleKit2 is affected by http://cgit.freedesktop.org/dbus/dbus-glib/commit/?id=7b81cf6445b0802c582dfca4a7e5afec5c9c389e and that's where the crash begins.

dimkr commented 9 years ago

With two bug fixes in dbus-glib - screeny