mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-08 06:38:02 +02:00
Introduce weston-launch
weston-launch starts weston and provides mechanism for weston to set/drop drm master, open a tty, and read input devices without being root. Execution is allowed for local-active sessions or users in the group weston-launch.
This commit is contained in:
parent
bab10c0812
commit
5cc1e3263a
1 changed files with 2 additions and 1 deletions
|
|
@ -30,6 +30,7 @@
|
||||||
|
|
||||||
#include "compositor.h"
|
#include "compositor.h"
|
||||||
#include "evdev.h"
|
#include "evdev.h"
|
||||||
|
#include "launcher-util.h"
|
||||||
|
|
||||||
struct evdev_input {
|
struct evdev_input {
|
||||||
struct weston_input_device base;
|
struct weston_input_device base;
|
||||||
|
|
@ -492,7 +493,7 @@ evdev_input_device_create(struct evdev_input *master,
|
||||||
/* Use non-blocking mode so that we can loop on read on
|
/* Use non-blocking mode so that we can loop on read on
|
||||||
* evdev_input_device_data() until all events on the fd are
|
* evdev_input_device_data() until all events on the fd are
|
||||||
* read. mtdev_get() also expects this. */
|
* read. mtdev_get() also expects this. */
|
||||||
device->fd = open(path, O_RDONLY | O_NONBLOCK);
|
device->fd = weston_launcher_open(ec, path, O_RDONLY | O_NONBLOCK);
|
||||||
if (device->fd < 0)
|
if (device->fd < 0)
|
||||||
goto err0;
|
goto err0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue