Since the time that the logind launcher integration was written, it has since gained a lot of features that mean that we don't have to touch the TTY or VT ioctls ourselves.
Refactor the launcher system so that we have three different implementations of the launcher system, tried in this order: 1. logind, which uses the systemd-logind APIs to manage VTs and TTYs and devices for us cooperatively. 2. weston-launch, which uses our legacy setuid helper to manage the same devices. 3. Direct, which is only used when you are root, for small embedded systems. The first two patches in this series should not have any major changes in behavior, but is simply a giant refactor to make this code more understandable and maintainable. The third patch upgrades our logind launcher to the latest APIs. Switching to the new logind APIs on logind also adds the new ability that a smoother handover can be done from display managers like gdm, where we can have a VT allocated to us instead of requiring that we're opened on our own VT. There should not be any regressions in existing behavior. Cc: David Herrmann <dh.herrm...@gmail.com> Cc: Ray Strode <rstr...@redhat.com> Jasper St. Pierre (3): launcher: Rename logind-util to launcher-logind launcher: Split out launcher implementations into three distinct ones launcher-logind: Remove old VT switching code, move to SwitchTo/Activate Makefile.am | 9 +- src/launcher-direct.c | 313 ++++++++++++++ src/launcher-impl.h | 39 ++ src/launcher-logind.c | 850 ++++++++++++++++++++++++++++++++++++++ src/launcher-util.c | 447 ++------------------ src/launcher-util.h | 5 +- src/launcher-weston-launch.c | 300 ++++++++++++++ src/logind-util.c | 953 ------------------------------------------- src/logind-util.h | 120 ------ 9 files changed, 1553 insertions(+), 1483 deletions(-) create mode 100644 src/launcher-direct.c create mode 100644 src/launcher-impl.h create mode 100644 src/launcher-logind.c create mode 100644 src/launcher-weston-launch.c delete mode 100644 src/logind-util.c delete mode 100644 src/logind-util.h -- 2.1.0 _______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel