diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-01-30 14:04:04 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-04-06 14:01:19 +0200 |
commit | bfeda130de340c090895d23ea0a5742521ff0078 (patch) | |
tree | 4b989a3e5e1472b644f690be28cc519666810d62 /src/evdev.c | |
parent | 1a36156972f14bb8d481abd71cb4210eb226a7ba (diff) |
Introduce weston-launchweston-launch-final
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.
Diffstat (limited to 'src/evdev.c')
-rw-r--r-- | src/evdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index 16f0e93..9967e52 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -30,6 +30,7 @@ #include "compositor.h" #include "evdev.h" +#include "launcher-util.h" struct evdev_input { 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 * evdev_input_device_data() until all events on the fd are * 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) goto err0; |