[PATCH weston 0/3] Rework the launcher infrastructure
Jasper St. Pierre
jstpierre at mecheye.net
Wed Mar 18 20:04:11 PDT 2015
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.herrmann at gmail.com>
Cc: Ray Strode <rstrode at 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
More information about the wayland-devel
mailing list