shell: Rewrite client_exec as client_launch 21/28021/1
authorMarius Vlad <marius.vlad@collabora.com>
Tue, 20 Sep 2022 07:10:01 +0000 (10:10 +0300)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 23 Sep 2022 15:15:11 +0000 (18:15 +0300)
commitf980c0d90329bf83a082c966d69b0015e34c218b
tree830c6f798f2781b51435956d5daed330738aa789
parentedb6d397a4c6e66aff8227bdd0f7f42ff07203f9
shell: Rewrite client_exec as client_launch

This patch is a major rewrite of the client_exec which fixes a couple of
issues found by upstream.

Specifically this address the following two issues:

- Do not weston_log() after fork()
- Own the session for the launched client

These two issues were integrated into this single patch.

It makes use of previously added wrappers to handle custom environment
being passed to the (shell) client being executed.

(Based on the work from https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/954
and from https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/817)

Bug-AGL: SPEC-4509

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: I29d4bcacba3671f67bb915bdb55a80b556e143ac
meson.build
src/compositor.c
src/ivi-compositor.h
src/shell.c